ar08 commited on
Commit
9f8be3d
·
verified ·
1 Parent(s): 7451fd1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -10
Dockerfile CHANGED
@@ -1,19 +1,19 @@
1
- FROM python:3.9.9
2
-
3
- RUN apt-get update
4
-
5
- RUN apt-get install ffmpeg libsm6 libxext6 -y
6
-
7
 
 
 
 
 
8
 
9
  WORKDIR /app
10
 
11
- COPY . /app/
12
-
13
 
 
14
  RUN pip install torch
15
- RUN pip3 install -r requirements.txt
 
16
  RUN mkdir checkpoints
17
  RUN wget -O ./checkpoints/inswapper_128.onnx https://huggingface.co/ashleykleynhans/inswapper/resolve/main/inswapper_128.onnx
18
 
19
- CMD ["python3","app.py","-H","0.0.0.0","-p","7860"]
 
1
+ FROM python:3.10
 
 
 
 
 
2
 
3
+ RUN apt-get update && apt-get install -y \
4
+ ffmpeg \
5
+ libsm6 \
6
+ libxext6
7
 
8
  WORKDIR /app
9
 
10
+ COPY . /app/
 
11
 
12
+ RUN pip install --upgrade pip
13
  RUN pip install torch
14
+ RUN pip install -r requirements.txt
15
+
16
  RUN mkdir checkpoints
17
  RUN wget -O ./checkpoints/inswapper_128.onnx https://huggingface.co/ashleykleynhans/inswapper/resolve/main/inswapper_128.onnx
18
 
19
+ CMD ["python3", "app.py", "-H", "0.0.0.0", "-p", "7860"]