# 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"]