codeBOKER commited on
Commit
e10c489
·
verified ·
1 Parent(s): d1309f7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -22,7 +22,7 @@ RUN pip install --no-cache-dir --upgrade pip && \
22
  pip install --no-cache-dir -r requirements.txt
23
 
24
  # Copy application code
25
- COPY main.py .
26
 
27
  # Create non-root user for security
28
  RUN useradd --create-home --shell /bin/bash app && \
@@ -37,4 +37,4 @@ HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
37
  CMD curl -f http://localhost:8000/ || exit 1
38
 
39
  # Run the application
40
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
 
22
  pip install --no-cache-dir -r requirements.txt
23
 
24
  # Copy application code
25
+ COPY app.py .
26
 
27
  # Create non-root user for security
28
  RUN useradd --create-home --shell /bin/bash app && \
 
37
  CMD curl -f http://localhost:8000/ || exit 1
38
 
39
  # Run the application
40
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]