FROM python:3.10 # Install system dependencies needed for dlib RUN apt-get update && apt-get install -y \ cmake \ libboost-all-dev \ build-essential \ python3-dev \ libopenblas-dev \ liblapack-dev \ git \ wget \ && rm -rf /var/lib/apt/lists/* WORKDIR /app # Preinstall dlib with pip to avoid timeout RUN pip install dlib==19.24.1 # Install other Python dependencies COPY requirements.txt . RUN pip install --upgrade pip RUN pip install -r requirements.txt # Copy your source code COPY . . CMD ["python", "app.py"]