Spaces:
Sleeping
Sleeping
File size: 469 Bytes
81f6231 605c260 c7c0e3d 8a2f136 c7c0e3d 81f6231 c7c0e3d 81f6231 f4c6e1b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
FROM python:3.10-slim
RUN apt-get update && apt-get install -y \
tesseract-ocr \
tesseract-ocr-ind \
libtesseract-dev \
libleptonica-dev \
poppler-utils \
libsm6 \
libxext6 \
libxrender-dev \
build-essential \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . /app
WORKDIR /app
ENV PORT 7860
CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:7860", "app:app"]
|