Spaces:
Paused
Paused
File size: 507 Bytes
1a8b7f9 b0375f4 1a8b7f9 d95727c b0375f4 d95727c b0375f4 78fbc6b d676440 1a8b7f9 b0375f4 1a8b7f9 78fbc6b 1a8b7f9 d676440 1a8b7f9 b0375f4 | 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.11-slim
ENV PYTHONUNBUFFERED=1
# Install system dependencies
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
ffmpeg \
poppler-utils \
tesseract-ocr \
libtesseract-dev \
curl \
build-essential \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --upgrade pip setuptools wheel
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY . /app
EXPOSE 7860
CMD ["python3", "app.py"]
|