likhonsheikh commited on
Commit
688f2de
·
verified ·
1 Parent(s): d6e107f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -1,11 +1,14 @@
 
1
  FROM ghcr.io/huggingface/chat-ui-db:latest
2
 
3
- # Hugging Face Spaces port requirement
4
  ENV PORT=7860
5
  ENV HF_TOKEN=""
6
 
 
7
  VOLUME ["/data"]
 
 
8
  EXPOSE 7860
9
 
10
- # Force app to use 7860 instead of 3000
11
- CMD ["sh", "-c", "PORT=7860 node server.js"]
 
1
+ # Use Hugging Face chat-ui-db image
2
  FROM ghcr.io/huggingface/chat-ui-db:latest
3
 
4
+ # Spaces require the app to listen on port 7860
5
  ENV PORT=7860
6
  ENV HF_TOKEN=""
7
 
8
+ # Mount /data for persistence
9
  VOLUME ["/data"]
10
+
11
+ # Expose the port Spaces expects
12
  EXPOSE 7860
13
 
14
+ # Do NOT override CMD let the base image handle startup