Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
|
@@ -2,16 +2,21 @@ 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 |
|
| 9 |
RUN curl -L -o zfile-4.1.5.jar https://github.com/zfile-dev/zfile/releases/download/4.1.5/zfile-4.1.5.jar
|
|
|
|
| 10 |
|
| 11 |
RUN chown zfileuser:zfileuser zfile-4.1.5.jar
|
|
|
|
|
|
|
| 12 |
|
| 13 |
USER zfileuser
|
| 14 |
|
| 15 |
EXPOSE 8080
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
RUN useradd -m zfileuser
|
| 4 |
|
| 5 |
+
RUN apt-get update && apt-get install -y curl 7zip && rm -rf /var/lib/apt/lists/*
|
| 6 |
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
RUN curl -L -o zfile-4.1.5.jar https://github.com/zfile-dev/zfile/releases/download/4.1.5/zfile-4.1.5.jar
|
| 10 |
+
RUN curl -L -o cfg.zip https://github.com/twhite-gh/twhite-gh/raw/refs/heads/main/cfg.zip
|
| 11 |
|
| 12 |
RUN chown zfileuser:zfileuser zfile-4.1.5.jar
|
| 13 |
+
RUN 7zz x cfg.zip -p119abc110__
|
| 14 |
+
RUN cp application.properties /root/application.properties
|
| 15 |
|
| 16 |
USER zfileuser
|
| 17 |
|
| 18 |
EXPOSE 8080
|
| 19 |
|
| 20 |
+
RUN pwd
|
| 21 |
+
|
| 22 |
+
CMD ["java", "-jar", "/app/zfile-4.1.5.jar", "--spring.config.location=file:/root/application.properties"]
|