Spaces:
Runtime error
Runtime error
File size: 799 Bytes
71d722e 3da52d6 89ff51b e8cfe45 4d24d7c e8cfe45 3da52d6 e8cfe45 3da52d6 e8cfe45 a7d6053 4d24d7c 3da52d6 0870b87 8c72deb |
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 registry.us-west-1.aliyuncs.com/modelscope-repo/modelscope:ubuntu22.04-cuda11.8.0-py310-torch2.1.0-tf2.14.0-1.10.0
ENV DEBIAN_FRONTEND=noninteractive
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:${PATH}
WORKDIR ${HOME}/app
COPY --chown=1000 ./requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt
COPY --chown=1000 . ${HOME}/app
ENV MODELSCOPE_CACHE=${HOME}/cache \
PYTHONPATH=${HOME}/app \
PYTHONUNBUFFERED=1 \
GRADIO_ALLOW_FLAGGING=never \
GRADIO_NUM_PORTS=1 \
GRADIO_SERVER_NAME=0.0.0.0 \
GRADIO_THEME=huggingface \
SYSTEM=spaces
RUN mkdir -p /home/user/.cache/modelscope/modelscope_modules/ && touch /home/user/.cache/modelscope/modelscope_modules/__init__.py
CMD ["python", "app.py"]
|