Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -25,9 +25,9 @@ COPY .env.example ./.env.example
|
|
| 25 |
|
| 26 |
RUN mkdir -p /app/data/uploads /app/.cache/huggingface
|
| 27 |
|
| 28 |
-
EXPOSE
|
| 29 |
|
| 30 |
-
HEALTHCHECK --interval=30s --timeout=10s --start-period=
|
| 31 |
-
CMD curl -fsS http://127.0.0.1:
|
| 32 |
|
| 33 |
-
CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 25 |
|
| 26 |
RUN mkdir -p /app/data/uploads /app/.cache/huggingface
|
| 27 |
|
| 28 |
+
EXPOSE 7860
|
| 29 |
|
| 30 |
+
HEALTHCHECK --interval=30s --timeout=10s --start-period=180s --retries=3 \
|
| 31 |
+
CMD curl -fsS http://127.0.0.1:7860/api/health || exit 1
|
| 32 |
|
| 33 |
+
CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|