revert: 镜像回退

This commit is contained in:
fit2cloud-chenyw 2021-12-09 21:25:13 +08:00
parent 7353b40ae7
commit 44f721d3ae

View File

@ -1,16 +1,4 @@
#FROM registry.cn-qingdao.aliyuncs.com/dataease/fabric8-java-alpine-openjdk8-jre
FROM alpine
RUN echo -e 'http://mirrors.aliyun.com/alpine/v3.15/main/\nhttp://mirrors.aliyun.com/alpine/v3.15/community/' > /etc/apk/repositories
RUN apk add openjdk8 chromium chromium-chromedriver fontconfig --no-cache --allow-untrusted
ADD simsun.ttc /usr/share/fonts/
RUN cd /usr/share/fonts/ \
&& mkfontscale \
&& mkfontdir \
&& fc-cache -fv
FROM registry.cn-qingdao.aliyuncs.com/dataease/fabric8-java-alpine-openjdk8-jre
ARG IMAGE_TAG
@ -34,7 +22,4 @@ ENV JAVA_OPTIONS=-Dfile.encoding=utf-8
HEALTHCHECK --interval=15s --timeout=5s --retries=20 --start-period=30s CMD curl -f 127.0.0.1:8081
EXPOSE 8081
ENTRYPOINT java -jar /opt/apps/backend-$IMAGE_TAG.jar
#CMD ["/deployments/run-java.sh"]
CMD ["/deployments/run-java.sh"]