Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
@@ -15,4 +15,5 @@ WORKDIR backend/
|
|
15 |
RUN pip install --no-cache-dir --upgrade -r ./requirements.txt
|
16 |
|
17 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
18 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
15 |
RUN pip install --no-cache-dir --upgrade -r ./requirements.txt
|
16 |
|
17 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
18 |
+
# CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
19 |
+
CMD ["gunicorn", "-k", "uvicorn.workers.UvicornWorker", "main:app"]
|