Samfy001 commited on
Commit
6ae6d16
·
verified ·
1 Parent(s): 2d19977

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -24,7 +24,7 @@ RUN pip install --no-cache-dir --upgrade pip && \
24
  # Copy application files
25
  COPY config.py .
26
  COPY scira_server.py .
27
- COPY start_server.py .
28
 
29
  # Create a non-root user for security
30
  RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app
@@ -38,4 +38,4 @@ HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
38
  CMD curl -f http://localhost:7860/health || exit 1
39
 
40
  # Start the application
41
- CMD ["python", "-m", "uvicorn", "scira_server:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]
 
24
  # Copy application files
25
  COPY config.py .
26
  COPY scira_server.py .
27
+ COPY app.py .
28
 
29
  # Create a non-root user for security
30
  RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app
 
38
  CMD curl -f http://localhost:7860/health || exit 1
39
 
40
  # Start the application
41
+ CMD ["python", "app.py"]