borreooo commited on
Commit
fa413c9
·
1 Parent(s): 16d34b9

Fix package name for newer Debian

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM python:3.11-slim
2
 
3
  # Install system dependencies required for OpenCV and pyzbar (barcodes)
4
  RUN apt-get update && apt-get install -y \
5
- libgl1-mesa-glx \
6
  libglib2.0-0 \
7
  libzbar0 \
8
  && rm -rf /var/lib/apt/lists/*
@@ -12,7 +12,6 @@ WORKDIR /app
12
  # Copy requirements and install
13
  COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
15
- # Install uvicorn and fastapi explicitly to ensure they are available in container
16
  RUN pip install --no-cache-dir fastapi uvicorn python-multipart
17
 
18
  # Copy all project files
@@ -25,4 +24,4 @@ RUN mkdir -p temp_uploads results images/barcode images/chassis
25
  EXPOSE 8000
26
 
27
  # Start application
28
- CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000"]
 
2
 
3
  # Install system dependencies required for OpenCV and pyzbar (barcodes)
4
  RUN apt-get update && apt-get install -y \
5
+ libgl1 \
6
  libglib2.0-0 \
7
  libzbar0 \
8
  && rm -rf /var/lib/apt/lists/*
 
12
  # Copy requirements and install
13
  COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
 
15
  RUN pip install --no-cache-dir fastapi uvicorn python-multipart
16
 
17
  # Copy all project files
 
24
  EXPOSE 8000
25
 
26
  # Start application
27
+ CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000"]