salomonsky commited on
Commit
423078b
·
verified ·
1 Parent(s): ca90449

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -30
Dockerfile CHANGED
@@ -1,31 +1,22 @@
1
- FROM python:3.9-slim
2
-
3
- RUN useradd -m -u 1000 user
4
-
5
- RUN apt-get update && apt-get install -y \
6
- ffmpeg \
7
- libsm6 \
8
- libxext6 \
9
- wget \
10
- git \
11
- && rm -rf /var/lib/apt/lists/*
12
-
13
- WORKDIR /app
14
- USER user
15
- ENV PATH="/home/user/.local/bin:$PATH"
16
-
17
- COPY --chown=user requirements.txt .
18
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
19
- RUN pip install git+https://github.com/Rudrabha/Wav2Lip.git
20
-
21
- COPY --chown=user . .
22
-
23
- RUN mkdir -p face_detection/detection/sfd && \
24
- wget -O face_detection/detection/sfd/s3fd.pth https://www.adrianbulat.com/downloads/python-fan/s3fd-619a316812.pth
25
-
26
- RUN mkdir -p checkpoints && \
27
- wget -O checkpoints/wav2lip.pth https://github.com/Rudrabha/Wav2Lip/releases/download/v1.0/wav2lip.pth && \
28
- wget -O checkpoints/wav2lip_gan.pth https://github.com/Rudrabha/Wav2Lip/releases/download/v1.0/wav2lip_gan.pth
29
-
30
- ENV PORT=7860
31
  CMD ["python", "-m", "flask", "run", "--host=0.0.0.0", "--port=7860"]
 
1
+ FROM python:3.9-slim
2
+
3
+ RUN useradd -m -u 1000 user
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ ffmpeg \
7
+ libsm6 \
8
+ libxext6 \
9
+ wget \
10
+ git \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ WORKDIR /app
14
+ USER user
15
+ ENV PATH="/home/user/.local/bin:$PATH"
16
+
17
+ COPY --chown=user requirements.txt .
18
+
19
+ COPY --chown=user . .
20
+
21
+ ENV PORT=7860
 
 
 
 
 
 
 
 
 
22
  CMD ["python", "-m", "flask", "run", "--host=0.0.0.0", "--port=7860"]