Spaces:
Sleeping
Sleeping
File size: 540 Bytes
0abb626 2293487 2408076 e97cf3d 2408076 a9d067c 2408076 2293487 0abb626 2408076 03aa968 2408076 0abb626 2293487 0abb626 2408076 9efb103 |
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 |
FROM python:3.9
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 tesseract-ocr tesseract-ocr-chi-sim -y
RUN mkdir -p $HOME/app/.cache
RUN useradd -m -u 1000 user
RUN chown -R user $HOME/
RUN chmod 777 $HOME/app/.cache
USER user
WORKDIR $HOME/app
ENV TRANSFORMERS_CACHE=$HOME/app/.cache \
HUGGINGFACE_HUB_CACHE=$HOME/app/.cache
COPY --chown=user . $HOME/app
RUN pip install --no-cache-dir --upgrade -r $HOME/app/requirements.txt
CMD ["python", "main.py"] |