Skip to content

Commit fb6a080

Browse files
🔒 security: Pin Dockerfile pip install by hash
1 parent 74796d5 commit fb6a080

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ RUN apt-get update && \
2121

2222
# Copy only essential files first to leverage Docker's caching
2323
COPY requirements.txt ./
24+
COPY .github/requirements-pip.txt ./.github/requirements-pip.txt
2425

2526
# Install dependencies efficiently
26-
RUN pip install --no-cache-dir --upgrade pip==25.0.1 && \
27+
RUN pip install --no-cache-dir --require-hashes -r .github/requirements-pip.txt && \
2728
pip install --no-cache-dir -r requirements.txt
2829

2930
# Copy the rest of the app source code

0 commit comments

Comments
 (0)