This commit is contained in:
2026-03-23 11:13:30 -03:00
parent 8186bb5fe6
commit 71fd0510de
34 changed files with 1373 additions and 104 deletions

View File

@@ -1,5 +1,7 @@
FROM python:3.11-slim
RUN pip install --no-cache-dir uv
RUN apt-get update && apt-get install -y \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
@@ -7,9 +9,9 @@ RUN apt-get update && apt-get install -y \
WORKDIR /app
COPY requirements.txt requirements-worker.txt ./
RUN pip install --no-cache-dir -r requirements-worker.txt
RUN uv pip install --system --no-cache -r requirements-worker.txt
# No COPY . . — code is volume-mounted in dev (..:/app)
# This image only provides Python runtime + FFmpeg + dependencies
# Copy code into image (k8s uses this, docker-compose volume-mounts over it)
COPY . .
CMD ["celery", "-A", "admin.mpr", "worker", "--loglevel=info"]