lauracabayol commited on
Commit
e50129b
·
1 Parent(s): 0143a6f

specify port

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -29,6 +29,9 @@ RUN mkdir -p $HOME/app/models
29
  COPY --chown=user data/models/modelZ_DA.pt $HOME/app/models/
30
  COPY --chown=user data/models/modelF_DA.pt $HOME/app/models/
31
 
 
 
 
32
  # Set the command to run your app, using the Hugging Face port
33
- CMD ["python", "app.py", "--port", "$PORT", "--server-name", "0.0.0.0"]
34
 
 
29
  COPY --chown=user data/models/modelZ_DA.pt $HOME/app/models/
30
  COPY --chown=user data/models/modelF_DA.pt $HOME/app/models/
31
 
32
+ # Expose the port the app runs on (if needed)
33
+ EXPOSE 7860
34
+
35
  # Set the command to run your app, using the Hugging Face port
36
+ CMD ["python", "app.py", "--port", "7860", "--server-name", "0.0.0.0"]
37