Spaces:
Sleeping
Sleeping
File size: 535 Bytes
423fc3f 386b136 eb53378 386b136 bb0d2c0 386b136 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | FROM python:3.9-buster
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Install system packages: poppler-utils (for pdf2image) and necessary libs for WeasyPrint.
RUN apt-get update && apt-get install -y \
poppler-utils \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libgdk-pixbuf2.0-0 \
libffi-dev \
libcairo2 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY . /app
EXPOSE 7860
CMD ["python", "app.py"]
|