joytou commited on
Commit
0ecf919
·
verified ·
1 Parent(s): 682509d

Update Dockerfile

Browse files

1. Set the env params to the dynamic;
2. Enable show api;
3. Fixed matplotlib 's cache and config directories had no read/write permission;

Files changed (1) hide show
  1. Dockerfile +11 -4
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
  FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
2
 
3
- ARG FACEFUSION_VERSION=2.5.2
4
- ENV GRADIO_SERVER_NAME=0.0.0.0
5
 
6
  WORKDIR /facefusion
7
 
@@ -17,7 +17,14 @@ RUN git clone https://github.com/facefusion/facefusion.git --branch ${FACEFUSION
17
 
18
  RUN chmod -R 777 ./
19
 
 
 
 
 
 
 
20
  WORKDIR /facefusion
21
- RUN python install.py --onnxruntime cuda-11.8 --skip-conda
22
- CMD ["python", "run.py"]
23
 
 
 
 
 
1
  FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04
2
 
3
+ ARG FACEFUSION_VERSION=${FACEFUSION}
4
+ ENV GRADIO_SERVER_NAME=${GRADIO_SERVER_NAME}
5
 
6
  WORKDIR /facefusion
7
 
 
17
 
18
  RUN chmod -R 777 ./
19
 
20
+ RUN sed -i 's/show_api = False/show_api = True, share = True/g' ./facefusion/uis/layouts/*.py
21
+
22
+ WORKDIR /.config/matplotlib
23
+ RUN chmod -R 777 /.config/matplotlib
24
+ WORKDIR /.cache/matplotlib
25
+ RUN chmod -R 777 /.cache/matplotlib
26
  WORKDIR /facefusion
 
 
27
 
28
+ WORKDIR /facefusion
29
+ RUN python install.py --onnxruntime cuda-11.8 --skip-conda
30
+ CMD ["python", "run.py"]