Files
rostpoliplast/scanner/Dockerfile
T
2026-04-29 14:46:41 +03:00

17 lines
313 B
Docker

FROM python:3.11-slim
RUN apt-get update && apt-get install -y \
libzbar0 \
libzbar-dev \
libgl1-mesa-glx \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY scanner.py .
CMD ["python", "scanner.py"]