2021-12-20 14:42:19 +08:00
|
|
|
FROM registry.cn-qingdao.aliyuncs.com/dataease/fabric8-java-alpine-openjdk8-jre:edge
|
2021-12-16 18:49:22 +08:00
|
|
|
|
2022-02-15 15:28:56 +08:00
|
|
|
RUN echo -e 'https://dl-cdn.alpinelinux.org/alpine/edge/main/\nhttps://dl-cdn.alpinelinux.org/alpine/edge/community/' > /etc/apk/repositories
|
2021-12-16 18:49:22 +08:00
|
|
|
|
2022-02-15 14:19:02 +08:00
|
|
|
#RUN apk add chromium chromium-chromedriver fontconfig --no-cache --allow-untrusted
|
2021-12-16 18:49:22 +08:00
|
|
|
|
2022-02-15 14:19:02 +08:00
|
|
|
#RUN mkdir -p /usr/local/sbin/ \
|
|
|
|
# && cp /usr/bin/chromedriver /usr/local/sbin/ \
|
|
|
|
# && chmod a+x /usr/local/sbin/chromedriver
|
2021-12-30 17:14:27 +08:00
|
|
|
|
2021-12-16 18:49:22 +08:00
|
|
|
ADD simsun.ttc /usr/share/fonts/
|
|
|
|
|
2022-02-15 14:19:02 +08:00
|
|
|
#RUN cd /usr/share/fonts/ \
|
|
|
|
# && mkfontscale \
|
|
|
|
# && mkfontdir \
|
|
|
|
# && fc-cache -fv
|
2021-11-24 11:01:55 +08:00
|
|
|
|
2021-12-09 17:58:41 +08:00
|
|
|
ARG IMAGE_TAG
|
2021-11-24 11:01:55 +08:00
|
|
|
|
2021-03-11 16:00:10 +08:00
|
|
|
RUN mkdir -p /opt/apps
|
|
|
|
|
2021-08-26 10:49:41 +08:00
|
|
|
RUN mkdir -p /opt/dataease/data/feature/full
|
|
|
|
|
|
|
|
ADD mapFiles/* /opt/dataease/data/feature/full/
|
|
|
|
|
2021-10-14 17:50:14 +08:00
|
|
|
RUN mkdir -p /opt/dataease/drivers
|
|
|
|
|
|
|
|
ADD drivers/* /opt/dataease/drivers/
|
|
|
|
|
2021-08-05 10:19:31 +08:00
|
|
|
ADD backend/target/backend-$IMAGE_TAG.jar /opt/apps
|
2021-03-11 16:00:10 +08:00
|
|
|
|
2021-08-05 10:19:31 +08:00
|
|
|
ENV JAVA_APP_JAR=/opt/apps/backend-$IMAGE_TAG.jar
|
2021-03-11 16:00:10 +08:00
|
|
|
|
|
|
|
ENV AB_OFF=true
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2021-12-09 21:25:13 +08:00
|
|
|
CMD ["/deployments/run-java.sh"]
|