Spaces:
Runtime error
Runtime error
Jintao Huang
commited on
Commit
•
9f1e600
1
Parent(s):
b0f6c82
add dockerfile
Browse files- Dockerfile +19 -0
Dockerfile
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM registry.us-west-1.aliyuncs.com/modelscope-repo/modelscope:ubuntu20.04-cuda11.7.1-py38-torch2.0.1-tf1.15.5-1.8.1
|
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 echo 'cloning facechain:hf_space'
|
14 |
+
RUN git clone -b feat/hf_space https://github.com/modelscope/facechain.git
|
15 |
+
WORKDIR $HOME/facechain
|
16 |
+
RUN pip install -r requirements.txt
|
17 |
+
ENV PYTHONPATH=.
|
18 |
+
CMD ["python", "app.py"]
|
19 |
+
|