CoolFace
Apppublic

aravindh-s/multiocr

sourceHugging Facemitupdated 3y agoView on Hugging Face
1likes
Dockerfile40 linesDownload Raw Back to root
1# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker2# you will also find guides on how best to write your Dockerfile3 4FROM python:3.95 6RUN apt-get update && apt-get install build-essential -y 7RUN apt-get update && apt-get install software-properties-common -y 8# RUN apt-get -y install gcc mono-mcs openssl && \9#     rm -rf /var/lib/apt/lists/*10 11# RUN add-apt-repository ppa:alex-p/tesseract-ocr-devel 12RUN apt-get update 13RUN apt-get install tesseract-ocr -y14RUN wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb \15    && dpkg -i libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb16RUN apt-get update && apt-get install ffmpeg libsm6 libxext6  -y17 18RUN useradd -m -u 1000 user19USER user20 21# Set home to the user's home directory22ENV HOME=/home/user \23    PATH=/home/user/.local/bin:$PATH24 25WORKDIR $HOME/app26COPY --chown=user . $HOME/app27 28COPY ./requirements.txt /app/requirements.txt29 30RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt31 32COPY . /app/33 34USER root35RUN chmod 777 /app/*36USER user37 38EXPOSE 7860 786039 40CMD ["python", "/app/app.py"]