Spaces:
Build error
Build error
Commit
·
109dea0
1
Parent(s):
ae53254
update
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
|
@@ -23,9 +23,10 @@ RUN pip install --no-cache-dir -r requirements.txt --timeout 100 --index-url htt
|
|
| 23 |
# Copy application code
|
| 24 |
COPY . .
|
| 25 |
|
| 26 |
-
# Expose
|
| 27 |
-
EXPOSE
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
-
# Run the application
|
| 30 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
| 31 |
|
|
|
|
| 23 |
# Copy application code
|
| 24 |
COPY . .
|
| 25 |
|
| 26 |
+
# Expose port 7860 for Hugging Face Spaces
|
| 27 |
+
EXPOSE 7860
|
| 28 |
+
|
| 29 |
+
# Run FastAPI on port 7860
|
| 30 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 31 |
|
|
|
|
|
|
|
| 32 |
|