Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -16,5 +16,8 @@ COPY . .
|
|
| 16 |
# Expose port 7860 (Hugging Face strictly requires this port)
|
| 17 |
EXPOSE 7860
|
| 18 |
|
| 19 |
-
#
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
# Expose port 7860 (Hugging Face strictly requires this port)
|
| 17 |
EXPOSE 7860
|
| 18 |
|
| 19 |
+
# Move into the back_end folder before starting the server
|
| 20 |
+
WORKDIR /app/back_end
|
| 21 |
+
|
| 22 |
+
# Run the app directly from inside that folder
|
| 23 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|