feat: Introduce a dedicated FFmpeg microservice for video processing, integrated into the Docker Compose setup.

This commit is contained in:
Michael committed 2026-01-22 13:06:00 +01:00
1 parent 8fde238369
commit e29048d374
5 files changed
+235

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
FROM python:3.11-slim
# Install system dependencies including FFmpeg and fonts
RUN apt-get update && apt-get install -y \
ffmpeg \
fonts-dejavu \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy requirements first for better caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY main.py .
# Create API Key env var (should be overridden in docker-compose)
ENV API_KEY=default-dev-key
# Expose port
EXPOSE 8000
# Run the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]