File size: 503 Bytes
b6aff9a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Use official Python base image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Copy project files
COPY . /app
# Install OS dependencies for ffmpeg
RUN apt-get update && apt-get install -y ffmpeg && apt-get clean
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose FastAPI port
EXPOSE 8000
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Start the app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"] |