dipan004 commited on
Commit
bbf44ca
·
verified ·
1 Parent(s): 3a5639d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -33,11 +33,11 @@ RUN useradd -m -u 1000 appuser && \
33
  USER appuser
34
 
35
  # Expose port
36
- EXPOSE 8000
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:8000/health')" || exit 1
41
 
42
  # Run application
43
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
 
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"]