Jofthomas HF staff commited on
Commit
5e5a6da
1 Parent(s): 64533cb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -10
Dockerfile CHANGED
@@ -1,7 +1,7 @@
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
@@ -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
- # Make sure the ffmpeg binary is accessible from the system's PATH
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"]