# 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"]