Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
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"]
|