Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
|
@@ -20,11 +20,12 @@ COPY . .
|
|
| 20 |
# Create volume for snapshots
|
| 21 |
VOLUME /snapshots
|
| 22 |
|
| 23 |
-
# Expose port 8000 for FastAPI
|
| 24 |
-
EXPOSE 8000
|
| 25 |
-
|
| 26 |
# Set environment variables
|
| 27 |
ENV PYTHONUNBUFFERED=1
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
# Run FastAPI app with uvicorn
|
| 30 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
|
| 20 |
# Create volume for snapshots
|
| 21 |
VOLUME /snapshots
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
# Set environment variables
|
| 24 |
ENV PYTHONUNBUFFERED=1
|
| 25 |
+
ENV YOLO_CONFIG_DIR=/tmp
|
| 26 |
+
|
| 27 |
+
# Expose port 8000 for FastAPI
|
| 28 |
+
EXPOSE 8000
|
| 29 |
|
| 30 |
# Run FastAPI app with uvicorn
|
| 31 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|