support antos 1.2.1

This commit is contained in:
Dany LE 2021-10-24 20:26:18 +02:00
parent c3ef5a2516
commit c7342479f8
2 changed files with 5 additions and 4 deletions

View File

@ -55,17 +55,17 @@ RUN cd /download/antd-publishers-0.1.0a && ./configure --prefix=/opt/www && mak
# download web apps # download web apps
RUN cd /download \ RUN cd /download \
&& wget --no-check-certificate https://github.com/lxsang/antd-web-apps/raw/master/dist/antd_web_apps.tar.gz#nothing3 \ && wget --no-check-certificate https://github.com/lxsang/antd-web-apps/raw/master/dist/antd_web_apps.tar.gz#nothing4 \
&& mkdir -p y-antd-web-apps \ && mkdir -p y-antd-web-apps \
&& tar xvzf antd_web_apps.tar.gz -C y-antd-web-apps \ && tar xvzf antd_web_apps.tar.gz -C y-antd-web-apps \
&& rm antd_web_apps.tar.gz && rm antd_web_apps.tar.gz
RUN rm -rf /download/z-antos RUN rm -rf /download/z-antos
RUN cd /download \ RUN cd /download \
&& wget --no-check-certificate https://github.com/lxsang/antos/raw/next-1.2.0/release/antos-1.2.0.tar.gz \ && wget --no-check-certificate https://github.com/lxsang/antos/raw/1.2.1/release/antos-1.2.1.tar.gz#refresh2 \
&& mkdir -p z-antos \ && mkdir -p z-antos \
&& tar xvzf antos-1.2.0.tar.gz -C z-antos \ && tar xvzf antos-1.2.1.tar.gz -C z-antos \
&& rm antos-1.2.0.tar.gz && rm antos-1.2.1.tar.gz
FROM busybox:stable-glibc FROM busybox:stable-glibc
#copy all necessary libraries #copy all necessary libraries

View File

@ -6,6 +6,7 @@ fi
mkdir -p /app/data/home mkdir -p /app/data/home
mkdir -p /app/data/database mkdir -p /app/data/database
mkdir -p /app/data/tmp mkdir -p /app/data/tmp
ln -sf /app/data/tmp /opt/www/tmp
[ ! -e "/home/$ANTOS_USER" ] && ln -sf /app/data/home "/home/$ANTOS_USER" [ ! -e "/home/$ANTOS_USER" ] && ln -sf /app/data/home "/home/$ANTOS_USER"
adduser --home "/home/$ANTOS_USER" --disabled-password --gecos "" "$ANTOS_USER" adduser --home "/home/$ANTOS_USER" --disabled-password --gecos "" "$ANTOS_USER"
echo "$ANTOS_USER:$ANTOS_PASSWORD" | /bin/chpasswd echo "$ANTOS_USER:$ANTOS_PASSWORD" | /bin/chpasswd