axm0121 commited on
Commit
cadfc0f
·
verified ·
1 Parent(s): 4566cfa

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -2
Dockerfile CHANGED
@@ -1,3 +1,20 @@
1
  FROM ghcr.io/komari-monitor/komari:latest
2
- RUN mkdir -p /app/data && chmod 777 /app/data
3
- EXPOSE 25774
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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"]