FROM python:3.12.16-slim-bookworm@sha256:44cf1793efa7c7a476bb0f2cff81443f4a072c90c1cb127e2924933daa3e8c64
WORKDIR /app
COPY worker/requirements-resolved.txt ./requirements.txt
RUN pip install --no-cache-dir -r requirements.txt && useradd --system --uid 10001 worker
COPY worker/pipeline ./pipeline
USER worker
ENV PYTHONUNBUFFERED=1
CMD ["python", "-m", "pipeline.main"]
