codeby-hp commited on
Commit
0e6da57
·
verified ·
1 Parent(s): c006e51

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -21,11 +21,11 @@ COPY fastapi_app .
21
  RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app
22
  USER appuser
23
 
24
- EXPOSE 8000
25
 
26
  # Health check
27
  HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
28
  CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')" || exit 1
29
 
30
  # Run the application
31
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
 
21
  RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app
22
  USER appuser
23
 
24
+ EXPOSE 7860
25
 
26
  # Health check
27
  HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
28
  CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')" || exit 1
29
 
30
  # Run the application
31
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]