This commit is contained in:
Anfioo
2026-01-31 18:43:46 +08:00
parent 68e12a7914
commit 37fe58bd5d
6 changed files with 29599 additions and 35 deletions

View File

@@ -1,13 +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
# 复制 jar 文件到镜像
@@ -15,4 +7,4 @@ COPY MicroCommunityBoot.jar /jar/MicroCommunityBoot.jar
EXPOSE 8008
ENTRYPOINT ["java", "-Dfile.encoding=UTF-8", "-Duser.timezone=Asia/Phnom_Penh", "-XX:+UseG1GC", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseContainerSupport", "-XX:MaxRAMPercentage=75.0", "-jar", "/jar/MicroCommunityBoot.jar"]
ENTRYPOINT ["java", "-Dfile.encoding=UTF-8", "-XX:+UseG1GC", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseContainerSupport", "-XX:MaxRAMPercentage=75.0", "-jar", "/jar/MicroCommunityBoot.jar"]