Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
FROM python:3.9.13
|
3 |
|
|
|
|
|
|
|
4 |
# Create a new user with a specific UID and home directory
|
5 |
RUN useradd -m -u 1000 user
|
6 |
|
@@ -16,7 +19,7 @@ WORKDIR /app
|
|
16 |
# Copy the requirements file into the container
|
17 |
COPY --chown=user ./requirements.txt requirements.txt
|
18 |
# Install system dependencies (including FFmpeg)
|
19 |
-
|
20 |
# Install any needed packages specified in requirements.txt
|
21 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
22 |
|
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
FROM python:3.9.13
|
3 |
|
4 |
+
# Install system dependencies (including FFmpeg)
|
5 |
+
RUN apt-get update && apt-get install -y ffmpeg
|
6 |
+
|
7 |
# Create a new user with a specific UID and home directory
|
8 |
RUN useradd -m -u 1000 user
|
9 |
|
|
|
19 |
# Copy the requirements file into the container
|
20 |
COPY --chown=user ./requirements.txt requirements.txt
|
21 |
# Install system dependencies (including FFmpeg)
|
22 |
+
sudo apt-get install libav-tools
|
23 |
# Install any needed packages specified in requirements.txt
|
24 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
25 |
|