Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +3 -10
Dockerfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
FROM python:3.10.9
|
2 |
|
3 |
-
# Install
|
4 |
-
RUN apt-get update && apt-get install -y
|
5 |
|
6 |
# Copy all files into the container
|
7 |
COPY . /app
|
@@ -9,14 +9,7 @@ COPY . /app
|
|
9 |
# Set the working directory
|
10 |
WORKDIR /app
|
11 |
|
12 |
-
# Extract ffmpeg from the zip file and set correct permissions
|
13 |
-
RUN unzip ffmpeg.zip -d /app/ffmpeg \
|
14 |
-
&& chmod +x /app/ffmpeg/ffmpeg
|
15 |
-
|
16 |
# Install Python dependencies
|
17 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
18 |
|
19 |
-
|
20 |
-
ENV PATH="/app/ffmpeg:$PATH"
|
21 |
-
|
22 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
FROM python:3.10.9
|
2 |
|
3 |
+
# Install ffmpeg and any other required packages
|
4 |
+
RUN apt-get update && apt-get install -y ffmpeg
|
5 |
|
6 |
# Copy all files into the container
|
7 |
COPY . /app
|
|
|
9 |
# Set the working directory
|
10 |
WORKDIR /app
|
11 |
|
|
|
|
|
|
|
|
|
12 |
# Install Python dependencies
|
13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
14 |
|
15 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|