forked from mtusi2026/mtusi2026lab5
9 lines
265 B
Docker
9 lines
265 B
Docker
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"]
|