Spaces:
Runtime error
Runtime error
Commit
·
e50129b
1
Parent(s):
0143a6f
specify port
Browse files- 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", "
|
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 |
|