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

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -1,14 +1,14 @@
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
 
 
1
  FROM python:3.11-slim
2
 
3
+ RUN apt-get update && apt-get install -y libgl1 libglib2.0-0 \
 
 
4
  && rm -rf /var/lib/apt/lists/*
5
 
6
  WORKDIR /app
7
  COPY requirements.txt .
8
+ # Install commonforms (pulls in opencv-python), then swap to headless (no X11 needed)
9
+ RUN pip install --no-cache-dir -r requirements.txt && \
10
+ pip uninstall -y opencv-python && \
11
+ pip install --no-cache-dir opencv-python-headless
12
 
13
  COPY . .
14