2023-10-23 21:58:50 +08:00
|
|
|
FROM registry.cn-qingdao.aliyuncs.com/dataease/alpine-openjdk17-jre
|
2021-12-16 18:49:22 +08:00
|
|
|
|
2021-12-09 17:58:41 +08:00
|
|
|
ARG IMAGE_TAG
|
2021-11-24 11:01:55 +08:00
|
|
|
|
2023-10-23 21:58:50 +08:00
|
|
|
RUN mkdir -p /opt/apps/config /opt/dataease/drivers/ /opt/dataease2.0/cache/ /opt/dataease2.0/data/map /opt/dataease2.0/data/static-resource/
|
2021-08-26 10:49:41 +08:00
|
|
|
|
2023-10-23 21:58:50 +08:00
|
|
|
ADD drivers/* /opt/dataease/drivers/
|
|
|
|
ADD mapFiles/ /opt/dataease2.0/data/map/
|
|
|
|
ADD staticResource/ /opt/dataease2.0/data/static-resource/
|
2021-08-26 10:49:41 +08:00
|
|
|
|
2023-10-23 21:58:50 +08:00
|
|
|
WORKDIR /opt/apps
|
2021-10-14 17:50:14 +08:00
|
|
|
|
2023-10-23 21:58:50 +08:00
|
|
|
ADD core/core-backend/target/CoreApplication.jar /opt/apps/app.jar
|
|
|
|
ADD de-xpack/xpack-permissions/target/xpack-permissions-$IMAGE_TAG.jar /opt/apps/xpack-permission.jar
|
|
|
|
ADD de-xpack/xpack-base/target/xpack-base-$IMAGE_TAG.jar /opt/apps/xpack-base.jar
|
2023-08-28 17:03:25 +08:00
|
|
|
|
2023-10-23 21:58:50 +08:00
|
|
|
ENV JAVA_APP_JAR=/opt/apps/app.jar
|
2021-03-11 16:00:10 +08:00
|
|
|
|
2023-10-23 21:58:50 +08:00
|
|
|
HEALTHCHECK --interval=15s --timeout=5s --retries=20 --start-period=30s CMD curl -f 127.0.0.1:8100
|
2021-03-11 16:00:10 +08:00
|
|
|
|
|
|
|
|
2023-10-23 21:58:50 +08:00
|
|
|
CMD java -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/dataease2.0/logs/dump.hprof -Dloader.path=/opt/apps/xpack-permission.jar,/opt/apps/xpack-base.jar -jar /opt/apps/app.jar
|