yeswanthvarma commited on
Commit
952772c
·
verified ·
1 Parent(s): f1ad996

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -0
Dockerfile CHANGED
@@ -1,10 +1,23 @@
1
  FROM python:3.10-slim
2
 
 
 
 
 
 
 
 
3
  WORKDIR /app
 
 
4
  COPY . .
5
 
 
6
  RUN pip install --no-cache-dir --upgrade pip
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
 
9
  EXPOSE 7860
 
 
10
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.10-slim
2
 
3
+ # System dependencies for OpenCV
4
+ RUN apt-get update && apt-get install -y \
5
+ libgl1 \
6
+ libglib2.0-0 \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Set working directory
10
  WORKDIR /app
11
+
12
+ # Copy everything
13
  COPY . .
14
 
15
+ # Install Python dependencies
16
  RUN pip install --no-cache-dir --upgrade pip
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
+ # Expose port
20
  EXPOSE 7860
21
+
22
+ # Start FastAPI app
23
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]