Spaces:
Sleeping
Sleeping
File size: 849 Bytes
96c003e 7d97b2d 96c003e ae06b4d 96c003e 7d97b2d e9c902c 96c003e 7d97b2d 96c003e 69da4b3 |
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 27 28 29 30 31 32 33 34 35 36 37 38 39 |
FROM python:3.10-slim
# Install system dependencies
RUN apt-get update && \
apt-get install -y \
libcrypt-dev \
libgl1-mesa-glx \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
libgomp1 \
poppler-utils \
build-essential \
libfontconfig1 \
libxrender1 \
libxtst6 \
libxi6 \
libfreetype6-dev \
libjpeg-dev \
libopenjp2-7-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Create both uploads and outputs directories with correct permissions
RUN mkdir -p /app/uploads /app/outputs && chmod -R 777 /app/uploads /app/outputs
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Install tabula-py to fix the warning
RUN pip install tabula-py
COPY . .
EXPOSE 7860
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"] |