diff --git a/resources/MicroCommunityMall/Dockerfile b/resources/MicroCommunityMall/Dockerfile index 957670b..baecc87 100644 --- a/resources/MicroCommunityMall/Dockerfile +++ b/resources/MicroCommunityMall/Dockerfile @@ -1,12 +1,5 @@ FROM openjdk:8-jdk -# 添加环境变量 -ENV TZ=Asia/Phnom_Penh - -# 保留原有的时区配置 -RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone - - # 创建 jar 目录 RUN mkdir -p /jar @@ -15,4 +8,4 @@ COPY MicroCommunityMall.jar /jar/MicroCommunityMall.jar EXPOSE 8015 -ENTRYPOINT ["java", "-Dfile.encoding=UTF-8", "-Duser.timezone=Asia/Phnom_Penh", "-XX:+UseG1GC", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseContainerSupport", "-XX:MaxRAMPercentage=20.0", "-jar", "/jar/MicroCommunityMall.jar"] +ENTRYPOINT ["java", "-Dfile.encoding=UTF-8", "-XX:+UseG1GC", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseContainerSupport", "-XX:MaxRAMPercentage=20.0", "-jar", "/jar/MicroCommunityMall.jar"]