McNeilAlex commited on
Commit
be737af
·
verified ·
1 Parent(s): ee70a30

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -1,8 +1,14 @@
1
  FROM python:3.11-slim
2
 
 
 
 
 
 
3
  WORKDIR /app
4
  COPY requirements.txt .
5
- RUN pip install --no-cache-dir -r requirements.txt
 
6
 
7
  COPY . .
8
 
 
1
  FROM python:3.11-slim
2
 
3
+ RUN apt-get update && apt-get install -y \
4
+ libxcb1 libxcb-cursor0 libxcb-shape0 libxcb-util1 \
5
+ libgl1 libglib2.0-0 libsm6 libxext6 libxrender1 \
6
+ && rm -rf /var/lib/apt/lists/*
7
+
8
  WORKDIR /app
9
  COPY requirements.txt .
10
+ RUN pip install --no-cache-dir opencv-python-headless && \
11
+ pip install --no-cache-dir -r requirements.txt
12
 
13
  COPY . .
14