File size: 575 Bytes
93c96e2
 
edca533
93c96e2
 
 
 
 
 
edca533
630d3b4
edca533
 
630d3b4
 
 
 
 
3ca2d62
630d3b4
 
edca533
630d3b4
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Use Python as the base image
FROM python:3.9-slim

# Set environment variables to avoid interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC

# Install system dependencies and ffmpeg
RUN apt-get update && apt-get install -y ffmpeg tzdata && apt-get clean

# Set working directory
WORKDIR /app

# Copy application files
COPY . /app

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

# Expose the application port
EXPOSE 8000

# Command to run the application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]