Spaces:
Running
Running
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies for WeasyPrint + supervisor for running multiple processes | |
| RUN apt-get update && apt-get install -y \ | |
| libpango-1.0-0 \ | |
| libpangocairo-1.0-0 \ | |
| libgdk-pixbuf-2.0-0 \ | |
| libffi-dev \ | |
| shared-mime-info \ | |
| supervisor \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf | |
| ENV PORT=7860 | |
| CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] | |