FROM python:3.10-slim RUN apt-get update && apt-get install -y wget && \ wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb && \ apt install -y ./wkhtmltox_0.12.6.1-2.jammy_amd64.deb && \ rm -rf /var/lib/apt/lists/* WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . ENV PORT=7860 CMD ["python", "app.py"]