Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -12,4 +12,6 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
#CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 15 |
-
CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"]
|
|
|
|
|
|
|
|
|
| 12 |
COPY . .
|
| 13 |
|
| 14 |
#CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 15 |
+
#CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"]
|
| 16 |
+
CMD ["gunicorn", "main:app", "-b", "0.0.0.0:7860"]
|
| 17 |
+
#如何设置Dockerfile:https://huggingface.co/docs/hub/spaces-sdks-docker
|