arittrabag commited on
Commit
2fb7bf6
·
verified ·
1 Parent(s): 0e0f05a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.9
2
 
3
  # Install libGL for OpenCV
4
  RUN apt-get update && apt-get install -y libgl1 && rm -rf /var/lib/apt/lists/*
@@ -14,11 +14,11 @@ ENV PATH="/home/user/.local/bin:$PATH"
14
  WORKDIR /app
15
 
16
  # Install Python deps
17
- COPY --chown=user requirements.txt .
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
  # Copy app code
21
  COPY --chown=user . /app
22
 
23
  # Start FastAPI using uvicorn
24
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.10-slim
2
 
3
  # Install libGL for OpenCV
4
  RUN apt-get update && apt-get install -y libgl1 && rm -rf /var/lib/apt/lists/*
 
14
  WORKDIR /app
15
 
16
  # Install Python deps
17
+ COPY --chown=user requirements.txt ./
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
  # Copy app code
21
  COPY --chown=user . /app
22
 
23
  # Start FastAPI using uvicorn
24
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]