Dockerfile_prod端口和健康检查修改

This commit is contained in:
huangsheng 2023-02-24 18:02:55 +08:00
parent 5218675a1a
commit 8716ceb232

View File

@ -9,6 +9,6 @@ RUN apk update && apk add --no-cache tzdata curl\
COPY ./server/target/crm-print-server-1.0.0.jar / COPY ./server/target/crm-print-server-1.0.0.jar /
RUN mkdir /templates RUN mkdir /templates
WORKDIR / WORKDIR /
HEALTHCHECK --interval=5s --timeout=3s CMD curl -fs http://localhost:9089/crm-print/actuator/health || exit 1 HEALTHCHECK --interval=60s --timeout=3s CMD curl -fs http://localhost:8080/crm-print/actuator/health || exit 1
EXPOSE 9089 EXPOSE 8080
CMD ["java","-Xms1000m","-Xmx1000m","-jar","crm-print-server-1.0.0.jar"] CMD ["java","-Xms1000m","-Xmx1000m","-jar","crm-print-server-1.0.0.jar"]