新疆后端项目

This commit is contained in:
DESKTOP-BLB5287\FP
2025-06-30 14:31:09 +08:00
commit 0e52aff1f1
2596 changed files with 261030 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM eclipse-temurin:8-jdk
#添加时区环境变量
ENV TZ Asia/Shanghai
#修改apt使用国内源
RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list \
&& sed -i 's/security.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
#为镜像设置时区和字体包
RUN apt-get update \
&& apt-get install -y fonts-dejavu \
&& cp /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo ${TZ} > /etc/timezone
#将打包好的jar包封装进镜像
ARG JAR_NAME=health-evaluate
COPY ${JAR_NAME}.jar app.jar
#镜像运行命令
ENTRYPOINT [ "java", "-jar", "/app.jar" ]
#ENV LOG4J_CONTEXT_SELECTOR org.apache.logging.log4j.core.async.AsyncLoggerContextSelector
EXPOSE 10001