Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -2,7 +2,8 @@ FROM openjdk:17-slim
|
|
2 |
|
3 |
RUN useradd -m zfileuser
|
4 |
|
5 |
-
|
|
|
6 |
|
7 |
WORKDIR /app
|
8 |
|
@@ -18,4 +19,5 @@ USER zfileuser
|
|
18 |
|
19 |
EXPOSE 8080
|
20 |
|
21 |
-
|
|
|
|
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"]
|