Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -39,10 +39,10 @@ RUN find /app -type d -exec chmod 755 {} \; && \
|
|
| 39 |
USER appuser
|
| 40 |
|
| 41 |
# Expose the port the app will run on (common for HF Spaces)
|
| 42 |
-
EXPOSE
|
| 43 |
|
| 44 |
# Command to run the application using uvicorn
|
| 45 |
# - main:app -> finds the 'app' instance in the 'main.py' file
|
| 46 |
# - --host 0.0.0.0 -> makes the server accessible from outside the container
|
| 47 |
# - --port 7860 -> matches the EXPOSE directive
|
| 48 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 39 |
USER appuser
|
| 40 |
|
| 41 |
# Expose the port the app will run on (common for HF Spaces)
|
| 42 |
+
EXPOSE 7860
|
| 43 |
|
| 44 |
# Command to run the application using uvicorn
|
| 45 |
# - main:app -> finds the 'app' instance in the 'main.py' file
|
| 46 |
# - --host 0.0.0.0 -> makes the server accessible from outside the container
|
| 47 |
# - --port 7860 -> matches the EXPOSE directive
|
| 48 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|