Files
open-gateway-service/docker/Dockerfile
T

17 lines
716 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.
# 平台标准运行镜像(对齐 projman 注入模板):SPRING_PROFILES_ACTIVE 由容器 env 注入
# (platform,{bucket},命令行不写死——写死会以更高优先级压掉平台公共配置层)
# CI 已先 mvn package 并 cp 成固定名 target/app.jar;构建上下文 = 仓库根
FROM eclipse-temurin:8-jre
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl tzdata \
&& ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY target/app.jar /app/app.jar
EXPOSE 10010
ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS:--Xms512m -Xmx1024m} -Dfile.encoding=UTF-8 -jar /app/app.jar"]