yuze.zyz commited on
Commit
05833c2
·
1 Parent(s): 7de6dc3

add application files

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM registry.cn-hangzhou.aliyuncs.com/modelscope-repo/modelscope:ubuntu20.04-cuda11.7.1-py38-torch2.0.1-tf1.15.5-1.8.0
2
+ RUN useradd -m -u 1000 user
3
+ USER user
4
+ ENV HOME=/home/user \
5
+ PATH=/home/user/.local/bin:$PATH
6
+ WORKDIR $HOME
7
+ RUN chmod 777 $HOME
8
+ RUN mkdir $HOME/modelscope_cache
9
+ ENV MODELSCOPE_CACHE=$HOME/modelscope_cache
10
+ ENV GRADIO_SERVER_NAME=0.0.0.0
11
+ EXPOSE 7860
12
+ RUN pip install gradio
13
+ RUN git clone -b feat/hf_space https://github.com/modelscope/facechain.git
14
+ WORKDIR $HOME/facechain
15
+ ENV PYTHONPATH=.
16
+ CMD ["python", "app.py"]