update base image for zfile

This commit is contained in:
Stille 2022-05-26 17:14:23 +08:00
parent 4ab1fb5e93
commit 6154daa982
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# mc
# registry-proxy
GitHub [stilleshan/dockerfiles](https://github.com/stilleshan/dockerfiles)
Docker [stilleshan/registry-proxy](https://hub.docker.com/r/stilleshan/registry-proxy)

View File

@ -1,14 +1,14 @@
FROM ioiox/alpine:3.15-openjdk-8-headless
FROM ibm-semeru-runtimes:open-8-jre
LABEL maintainer="Stille <stille@ioiox.com>"
ENV VERSION 3.2.5
WORKDIR /root
RUN wget https://github.com/zhaojun1998/zfile/releases/download/${VERSION}/zfile-${VERSION}.war \
&& mkdir zfile && unzip zfile-${VERSION}.war -d zfile && rm -rf zfile-${VERSION}.war \
&& chmod +x ~/zfile/bin/*.sh
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
RUN curl -L -o app.jar https://github.com/zhaojun1998/zfile/releases/download/${VERSION}/zfile-${VERSION}.jar
EXPOSE 8080
CMD sh ./zfile/bin/start.sh && tail -f /dev/null
ENTRYPOINT java $JAVA_OPTS -Xshareclasses -Xquickstart -jar /root/app.jar