2021-06-16 18:26:03 +08:00
|
|
|
FROM registry.cn-qingdao.aliyuncs.com/dataease/fabric8-java-alpine-openjdk8-jre
|
2021-03-11 16:00:10 +08:00
|
|
|
|
|
|
|
ARG IMAGE_TAG
|
|
|
|
|
|
|
|
RUN mkdir -p /opt/apps
|
|
|
|
|
2021-06-24 10:08:10 +08:00
|
|
|
ADD backend/target/backend-1.0.0.jar /opt/apps
|
2021-03-11 16:00:10 +08:00
|
|
|
|
2021-06-24 10:08:10 +08:00
|
|
|
ENV JAVA_APP_JAR=/opt/apps/backend-1.0.0.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
|
|
|
|
|
|
|
|
CMD ["/deployments/run-java.sh"]
|