Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
FROM python:3.10.9
|
2 |
|
3 |
-
|
|
|
4 |
|
|
|
|
|
|
|
|
|
5 |
WORKDIR /app
|
6 |
|
7 |
# Extract ffmpeg from the zip file and set correct permissions
|
@@ -9,7 +14,7 @@ RUN unzip ffmpeg.zip -d /app/ffmpeg \
|
|
9 |
&& chmod +x /app/ffmpeg/ffmpeg
|
10 |
|
11 |
# Install Python dependencies
|
12 |
-
RUN pip install --no-cache-dir --upgrade -r
|
13 |
|
14 |
# Make sure the ffmpeg binary is accessible from the system's PATH
|
15 |
ENV PATH="/app/ffmpeg:$PATH"
|
|
|
1 |
FROM python:3.10.9
|
2 |
|
3 |
+
# Install unzip
|
4 |
+
RUN apt-get update && apt-get install -y unzip
|
5 |
|
6 |
+
# Copy all files into the container
|
7 |
+
COPY . /app
|
8 |
+
|
9 |
+
# Set the working directory
|
10 |
WORKDIR /app
|
11 |
|
12 |
# Extract ffmpeg from the zip file and set correct permissions
|
|
|
14 |
&& chmod +x /app/ffmpeg/ffmpeg
|
15 |
|
16 |
# Install Python dependencies
|
17 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
18 |
|
19 |
# Make sure the ffmpeg binary is accessible from the system's PATH
|
20 |
ENV PATH="/app/ffmpeg:$PATH"
|