pchalasani commited on
Commit
950f846
·
1 Parent(s): 44fc674

update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -18,6 +18,10 @@ RUN pip install -r requirements.txt
18
  # Copy the rest of the application
19
  COPY --chown=user . .
20
 
 
 
 
 
21
  # Document that the container listens on port 7860
22
  EXPOSE 7860
23
 
@@ -25,4 +29,4 @@ EXPOSE 7860
25
  USER user
26
 
27
  # Command to run the application
28
- CMD ["chainlit", "run", "scripts/chat.py", "--port", "7860"]
 
18
  # Copy the rest of the application
19
  COPY --chown=user . .
20
 
21
+ # HF Spaces specific: Listen on 0.0.0.0 to accept external connections
22
+ ENV HOST=0.0.0.0
23
+ ENV PORT=7860
24
+
25
  # Document that the container listens on port 7860
26
  EXPOSE 7860
27
 
 
29
  USER user
30
 
31
  # Command to run the application
32
+ CMD ["chainlit", "run", "scripts/chat.py", "--host", "0.0.0.0", "--port", "7860"]