Spaces:
Sleeping
Sleeping
Dhruva P Gowda commited on
Commit ·
100c6cd
1
Parent(s): 8f1bf7a
Update default Docker port to 7860 for Hugging Face Spaces compatibility
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -11,8 +11,8 @@ COPY . /app
|
|
| 11 |
# Install dependencies from the copied backend folder
|
| 12 |
RUN pip install --no-cache-dir -r backend/requirements.txt
|
| 13 |
|
| 14 |
-
# Set environment variables
|
| 15 |
-
ENV PORT=
|
| 16 |
|
| 17 |
# Run the unified backend application
|
| 18 |
CMD ["sh", "-c", "uvicorn backend.app.main:app --host 0.0.0.0 --port ${PORT}"]
|
|
|
|
| 11 |
# Install dependencies from the copied backend folder
|
| 12 |
RUN pip install --no-cache-dir -r backend/requirements.txt
|
| 13 |
|
| 14 |
+
# Set environment variables (7860 is required by Hugging Face Spaces by default)
|
| 15 |
+
ENV PORT=7860
|
| 16 |
|
| 17 |
# Run the unified backend application
|
| 18 |
CMD ["sh", "-c", "uvicorn backend.app.main:app --host 0.0.0.0 --port ${PORT}"]
|