anycallgmail commited on
Commit
1e28122
·
verified ·
1 Parent(s): 65d43c7

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 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 mkdir -p /app/config
12
+
13
+ COPY application.properties /app/config/
14
+ RUN chmod 644 /app/config/application.properties
15
+ RUN chown -R zfileuser:zfileuser /app
16
+
17
+ USER zfileuser
18
+
19
+ EXPOSE 8080
20
+
21
+ CMD ["java", "-jar", "/app/zfile-4.1.5.jar"]