Rivalcoder commited on
Commit
6e3073a
·
1 Parent(s): e92cb3b
Files changed (2) hide show
  1. Dockerfile +3 -3
  2. app/main.py +1 -1
Dockerfile CHANGED
@@ -44,7 +44,7 @@ RUN useradd --create-home --shell /bin/bash app \
44
  USER app
45
 
46
  # Expose port 8000
47
- EXPOSE 8000
48
 
49
  # Set environment variables
50
  ENV PYTHONPATH=/app
@@ -52,7 +52,7 @@ ENV PYTHONUNBUFFERED=1
52
 
53
  # Health check
54
  HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
55
- CMD curl -f http://localhost:8000/health || exit 1
56
 
57
  # Run the application
58
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
 
44
  USER app
45
 
46
  # Expose port 8000
47
+ EXPOSE 7860
48
 
49
  # Set environment variables
50
  ENV PYTHONPATH=/app
 
52
 
53
  # Health check
54
  HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
55
+ CMD curl -f http://localhost:7860/health || exit 1
56
 
57
  # Run the application
58
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
app/main.py CHANGED
@@ -150,4 +150,4 @@ async def health_check():
150
 
151
  if __name__ == "__main__":
152
  import uvicorn
153
- uvicorn.run(app, host="0.0.0.0", port=8000)
 
150
 
151
  if __name__ == "__main__":
152
  import uvicorn
153
+ uvicorn.run(app, host="0.0.0.0", port=7860)