File size: 566 Bytes
6c0ac6b
 
40b10b7
 
6c0ac6b
40b10b7
 
 
 
692d290
6c0ac6b
692d290
 
 
 
 
40b10b7
6c0ac6b
692d290
 
 
6c0ac6b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.10.9

# Install unzip
RUN apt-get update && apt-get install -y unzip

# Copy all files into the container
COPY . /app

# Set the working directory
WORKDIR /app

# Extract ffmpeg from the zip file and set correct permissions
RUN unzip ffmpeg.zip -d /app/ffmpeg \
    && chmod +x /app/ffmpeg/ffmpeg

# Install Python dependencies
RUN pip install --no-cache-dir --upgrade -r requirements.txt

# Make sure the ffmpeg binary is accessible from the system's PATH
ENV PATH="/app/ffmpeg:$PATH"

CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]