Spaces:
Sleeping
Sleeping
File size: 619 Bytes
0dda2a1 99a8494 3bc8654 6182ca1 3bc8654 99a8494 9d445f4 3bc8654 88d2fdc 3bc8654 706993d 0dda2a1 5a54ed5 044550c ef6d7ea 5e184cf b92a943 0dda2a1 e6741bc |
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 |
FROM python:3.10-slim
WORKDIR /app
COPY . /app
RUN apt-get -y update && apt-get -y upgrade
RUN apt-get install -y \
build-essential \
git\
cmake \
poppler-utils \
ffmpeg \
libsm6 \
libxext6 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir -r requirements.txt
RUN python -m nltk.downloader -d /usr/share/nltk_data all
RUN chmod -R 777 /app
RUN mkdir -p /.EasyOCR && chmod -R 777 /.EasyOCR
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--timeout-keep-alive", "300", "--timeout-graceful-shutdown", "600"] |