Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -33,11 +33,11 @@ RUN useradd -m -u 1000 appuser && \
|
|
| 33 |
USER appuser
|
| 34 |
|
| 35 |
# Expose port
|
| 36 |
-
EXPOSE
|
| 37 |
|
| 38 |
# Health check
|
| 39 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
| 40 |
-
CMD python -c "import requests; requests.get('http://localhost:
|
| 41 |
|
| 42 |
# Run application
|
| 43 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 33 |
USER appuser
|
| 34 |
|
| 35 |
# Expose port
|
| 36 |
+
EXPOSE 7860
|
| 37 |
|
| 38 |
# Health check
|
| 39 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
| 40 |
+
CMD python -c "import requests; requests.get('http://localhost:7860/health')" || exit 1
|
| 41 |
|
| 42 |
# Run application
|
| 43 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|