elmerzole commited on
Commit
0345483
·
verified ·
1 Parent(s): 14fdf69

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -1,5 +1,9 @@
1
  FROM ghcr.io/gotify/server:latest
2
 
 
 
 
 
3
  # Create writable dirs
4
  RUN mkdir -p /home/user/gotify/images \
5
  /home/user/gotify/plugins \
@@ -15,7 +19,7 @@ COPY restore.sh /home/user/entrypoint/restore.sh
15
  RUN chmod +x /home/user/entrypoint/*.sh && \
16
  chown -R 1000:1000 /home/user
17
 
18
- # Switch to HF default user
19
  USER 1000
20
 
21
  # Hugging Face Spaces provides $PORT (default 7860)
@@ -31,5 +35,4 @@ ENV BACKUP_INTERVAL=300
31
 
32
  EXPOSE 7860
33
 
34
- # Entry point runs restore → gotify → backups
35
  ENTRYPOINT ["/home/user/entrypoint/entrypoint.sh"]
 
1
  FROM ghcr.io/gotify/server:latest
2
 
3
+ # Install needed tools (git + openssl)
4
+ USER root
5
+ RUN apt-get update && apt-get install -y git openssl && rm -rf /var/lib/apt/lists/*
6
+
7
  # Create writable dirs
8
  RUN mkdir -p /home/user/gotify/images \
9
  /home/user/gotify/plugins \
 
19
  RUN chmod +x /home/user/entrypoint/*.sh && \
20
  chown -R 1000:1000 /home/user
21
 
22
+ # Switch back to HF default user
23
  USER 1000
24
 
25
  # Hugging Face Spaces provides $PORT (default 7860)
 
35
 
36
  EXPOSE 7860
37
 
 
38
  ENTRYPOINT ["/home/user/entrypoint/entrypoint.sh"]