Skip to content

Commit 2237757

Browse files
authored
Merge pull request #82 from Boyuan-IT-Club/Red_Moon
回退dockerfile版本
2 parents e27a653 + 52436f5 commit 2237757

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Dockerfile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ RUN apt-get update && apt-get install -y \
99
curl \
1010
jq \
1111
&& locale-gen zh_CN.UTF-8 \
12-
&& update-locale LANG=zh_CN.UTF-8 \
1312
&& rm -rf /var/lib/apt/lists/*
1413

1514
# 设置中文环境变量
@@ -20,14 +19,9 @@ ENV LANG=zh_CN.UTF-8 \
2019
# 创建目录
2120
WORKDIR /official
2221

23-
# 复制应用文件
24-
COPY target/official-*.jar official.jar
22+
# 复制应用JAR包
23+
COPY target/Official-*.jar official.jar
2524

26-
# 暴露端口
2725
EXPOSE 8080
2826

29-
# 添加JVM参数以支持UTF-8编码和字体处理
30-
ENV JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -Djava.awt.headless=true"
31-
32-
# 启动应用
3327
ENTRYPOINT ["java", "-jar", "official.jar", "--spring.profiles.active=prod"]

0 commit comments

Comments
 (0)