Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -22,10 +22,10 @@ RUN mkdir -p uploads
|
|
| 22 |
# Set environment variables
|
| 23 |
ENV PYTHONDONTWRITEBYTECODE=1
|
| 24 |
ENV PYTHONUNBUFFERED=1
|
| 25 |
-
ENV PORT=
|
| 26 |
|
| 27 |
# Expose the port the app runs on
|
| 28 |
-
EXPOSE
|
| 29 |
|
| 30 |
# Command to run the application using uvicorn directly
|
| 31 |
CMD gunicorn main:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:$PORT
|
|
|
|
| 22 |
# Set environment variables
|
| 23 |
ENV PYTHONDONTWRITEBYTECODE=1
|
| 24 |
ENV PYTHONUNBUFFERED=1
|
| 25 |
+
ENV PORT=7860
|
| 26 |
|
| 27 |
# Expose the port the app runs on
|
| 28 |
+
EXPOSE 7860
|
| 29 |
|
| 30 |
# Command to run the application using uvicorn directly
|
| 31 |
CMD gunicorn main:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:$PORT
|