dataease-dm/Dockerfile

19 lines
717 B
Docker
Raw Normal View History

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-11-01 10:13:41 +08:00
RUN mkdir -p /opt/apps/config /opt/dataease2.0/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-11-01 10:13:41 +08:00
ADD drivers/* /opt/dataease2.0/drivers/
2023-10-23 21:58:50 +08:00
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
2023-10-23 21:58:50 +08:00
ADD core/core-backend/target/CoreApplication.jar /opt/apps/app.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
CMD java -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/dataease2.0/logs/dump.hprof -jar /opt/apps/app.jar