FROM python:3.9-slim WORKDIR /app COPY requirements.txt . RUN apt-get update && \ apt-get install -y libgl1 libglib2.0-0 && \ rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir -r requirements.txt COPY . . EXPOSE 5000 CMD ["python", "main.py"]