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,6 @@
FROM openjdk:8-jdk
# 创建 jar 目录
# 添加环境变量
ENV TZ=Asia/Phnom_Penh
# 保留原有的时区配置
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN mkdir -p /jar
# 复制 jar 文件到镜像
COPY MicroCommunityIot.jar /jar/MicroCommunityIot.jar
@@ -15,4 +8,4 @@ COPY MicroCommunityIot.jar /jar/MicroCommunityIot.jar
EXPOSE 9999 20011
ENTRYPOINT ["java", "-Dfile.encoding=UTF-8", "-Duser.timezone=Asia/Phnom_Penh", "-XX:+UseG1GC", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseContainerSupport", "-XX:MaxRAMPercentage=75.0", "-jar", "/jar/MicroCommunityIot.jar"]
ENTRYPOINT ["java", "-Dfile.encoding=UTF-8", "-XX:+UseG1GC", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseContainerSupport", "-XX:MaxRAMPercentage=75.0", "-jar", "/jar/MicroCommunityIot.jar"]