A11: Use requirements-lock.txt in Dockerfile for reproducible builds
This commit is contained in:
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
FROM python:3.12-slim
|
FROM python:3.12-slim
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
||||||
COPY apps/api/requirements.txt .
|
COPY apps/api/requirements-lock.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements-lock.txt
|
||||||
RUN useradd --create-home --uid 10001 rf4
|
RUN useradd --create-home --uid 10001 rf4
|
||||||
COPY --chown=rf4:rf4 apps/api .
|
COPY --chown=rf4:rf4 apps/api .
|
||||||
COPY --chown=rf4:rf4 rf4_research ./rf4_research
|
COPY --chown=rf4:rf4 rf4_research ./rf4_research
|
||||||
|
|||||||
Reference in New Issue
Block a user