triflix commited on
Commit
c5d8bd1
·
verified ·
1 Parent(s): 0a515cd

Update Dockerfile1

Browse files
Files changed (1) hide show
  1. Dockerfile1 +2 -2
Dockerfile1 CHANGED
@@ -22,7 +22,7 @@ RUN apt-get update \
22
 
23
  # Install Python dependencies
24
  # If your pipeline requires google-genai, include it; otherwise adjust as needed.
25
- RUN pip install --no-cache-dir fastapi uvicorn[standard] python-multipart jinja2 aiofiles pandas numpy openpyxl google-genai
26
 
27
  # Create a non-root user (optional but recommended)
28
  RUN useradd -m appuser || true
@@ -32,4 +32,4 @@ USER appuser
32
  EXPOSE 7860
33
 
34
  # Command to run the app
35
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]
 
22
 
23
  # Install Python dependencies
24
  # If your pipeline requires google-genai, include it; otherwise adjust as needed.
25
+ RUN pip install --no-cache-dir -r requirements.txt
26
 
27
  # Create a non-root user (optional but recommended)
28
  RUN useradd -m appuser || true
 
32
  EXPOSE 7860
33
 
34
  # Command to run the app
35
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]