Spaces:
Running
Running
| FROM python:3.10-bullseye | |
| WORKDIR /app | |
| 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.bullseye_amd64.deb \ | |
| && apt-get install -y ./wkhtmltox_0.12.6.1-2.bullseye_amd64.deb \ | |
| && rm wkhtmltox_0.12.6.1-2.bullseye_amd64.deb \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN mkdir -p uploads outputs | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |