forked from mtusi2026/mtusi2026lab7
Implement lab7 security and compromised worker recovery evidence
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user