FROM python:3.12.12-slim
WORKDIR /app
COPY worker/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"]
