elmerzole commited on
Commit
0dde1f1
·
verified ·
1 Parent(s): 8c8da48

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Gotify image
2
+ FROM ghcr.io/gotify/server:latest
3
+
4
+ # Hugging Face runs containers as user 1000; make a writable workdir
5
+ USER root
6
+ RUN mkdir -p /home/user/app && chown -R 1000:1000 /home/user
7
+ USER 1000
8
+ WORKDIR /home/user/app
9
+
10
+ # Simple entrypoint that maps HF's $PORT to Gotify's configured port
11
+ # and sets sensible defaults for a Space
12
+ COPY --chown=1000:1000 entrypoint.sh /home/user/app/entrypoint.sh
13
+ RUN chmod +x /home/user/app/entrypoint.sh
14
+
15
+ # Expose the default HF port (actual port comes from $PORT at runtime)
16
+ EXPOSE 7860
17
+
18
+ # Gotify reads config from env; we'll set them at runtime
19
+ ENTRYPOINT ["/home/user/app/entrypoint.sh"]