anycallgmail commited on
Commit
4388ad1
·
verified ·
1 Parent(s): d68b679

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -2,7 +2,8 @@ FROM openjdk:17-slim
2
 
3
  RUN useradd -m zfileuser
4
 
5
- RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
 
6
 
7
  WORKDIR /app
8
 
@@ -18,4 +19,5 @@ USER zfileuser
18
 
19
  EXPOSE 8080
20
 
21
- CMD ["java", "-jar", "/app/zfile-4.1.5.jar"]
 
 
2
 
3
  RUN useradd -m zfileuser
4
 
5
+ # 安装必要的字体和图形库
6
+ RUN apt-get update && apt-get install -y curl fontconfig libfreetype6 fonts-dejavu && rm -rf /var/lib/apt/lists/*
7
 
8
  WORKDIR /app
9
 
 
19
 
20
  EXPOSE 8080
21
 
22
+ # 添加无头模式参数
23
+ CMD ["java", "-Djava.awt.headless=true", "-jar", "/app/zfile-4.1.5.jar"]