Skip to content

Commit 0eeb032

Browse files
authored
Merge pull request #5797 from snyk/chore/replace_add_by_copy
chore: replace unnecessary usage of ADD by COPY
2 parents 5af4379 + 700482e commit 0eeb032

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.circleci/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ RUN node -v
3838
RUN apt-get auto-remove -y && apt-get clean -y && rm -rf /var/lib/apt/
3939

4040
# install aws cli
41-
ADD .circleci/awscli-publickey.pub awscli-publickey.pub
41+
COPY .circleci/awscli-publickey.pub awscli-publickey.pub
4242
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-$ARCH.zip" -o "awscliv2.zip"
4343
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-$ARCH.zip.sig" -o "awscliv2.sig"
4444
RUN gpg --import awscli-publickey.pub
@@ -51,7 +51,7 @@ RUN useradd circleci --create-home
5151
RUN echo "circleci ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
5252

5353
# install snyk
54-
ADD scripts/ scripts/
54+
COPY scripts/ scripts/
5555
RUN mkdir -p /target/global-logging
5656
RUN chown -R circleci scripts /target && chmod 770 scripts/*
5757

0 commit comments

Comments
 (0)