Mishcate commited on
Commit
2fe7018
·
verified ·
1 Parent(s): a477a7f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ghcr.io/komari-monitor/komari:latest
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apk add --update --no-cache python3 py3-pip curl lsof
6
+
7
+ RUN python3 -m venv /app/venv
8
+ ENV PATH="/app/venv/bin:$PATH"
9
+ RUN pip install --no-cache-dir requests webdavclient3
10
+
11
+ RUN mkdir -p /app/data && chmod -R 775 /app/data
12
+ RUN chmod -R 775 /app
13
+ RUN mkdir -p /app/sync
14
+
15
+ COPY sync_data.sh /app/sync/
16
+ RUN chmod +x /app/sync/sync_data.sh
17
+
18
+ EXPOSE 25774
19
+
20
+ CMD ["/bin/sh", "-c", "/app/sync/sync_data.sh & sleep 10 && exec /app/komari server"]