Skip to content

Commit

Permalink
Use COPY instead of ADD in Dockerfile.
Browse files Browse the repository at this point in the history
Signed-off-by: pipeacosta <[email protected]>
  • Loading branch information
pipeacosta committed Jan 29, 2025
1 parent 3e32cee commit 642be11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ RUN dnf -y install \
protobuf-c-devel

# Python dependencies
ADD requirements.txt .
COPY requirements.txt .

Check notice

Code scanning / SonarCloud

Prefer COPY over ADD for copying local resources Low

Replace this ADD instruction with a COPY instruction. See more on SonarQube Cloud
RUN pip3 install --upgrade wheel build
RUN pip3 install -r requirements.txt

Expand Down

0 comments on commit 642be11

Please sign in to comment.