File size: 508 Bytes
81c12c5 c3bd2e0 7924ef6 c3bd2e0 b1d54ad 43de6ee 81c12c5 b1d54ad c3bd2e0 81c12c5 c3bd2e0 43de6ee 81c12c5 c3bd2e0 b1d54ad 43de6ee c3bd2e0 81c12c5 c3bd2e0 81c12c5 c3bd2e0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # Use an official Python runtime
FROM python:3.10-slim
# Set the working directory
WORKDIR /app
# Updated install command for newer Debian versions
RUN apt-get update && apt-get install -y \
libzbar0 \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Expose Hugging Face port
EXPOSE 7860
# Run the app
CMD ["python", "main.py"] |