Files
ecom-dmb/ecom-dmb-backend/deploy/Dockerfile
T

12 lines
406 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 运行时镜像:业务 JAR 通过 volume 挂载 /data/app.jar,更新部署无需重建镜像
ARG BASE_IMAGE=docker.m.daocloud.io/library/eclipse-temurin:17-jre-alpine
FROM ${BASE_IMAGE}
WORKDIR /app
RUN addgroup -S app && adduser -S app -G app
USER app
# 实际端口由 Spring profile 决定(test:8101 / pre:8102 / prod:8103)
EXPOSE 8101 8102 8103
ENTRYPOINT ["java", "-jar", "/data/app.jar"]