Skip to content

Commit

Permalink
images/krte/Dockerfile: move COPY instruction for cache efficiency
Browse files Browse the repository at this point in the history
The `RUN` cache below the `COPY` instruction is invalidated on updating
the script.

Signed-off-by: Akihiro Suda <[email protected]>
  • Loading branch information
AkihiroSuda committed Sep 18, 2023
1 parent 1cda443 commit c28d9ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions images/krte/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ ENV KRTE_IMAGE=${IMAGE_ARG} \
CLOUDSDK_CORE_DISABLE_PROMPTS=1 \
CONTAINER=docker

# copy in image utility scripts
COPY wrapper.sh /usr/local/bin/

# Install tools needed to:
# - install docker
# - build kind
Expand Down Expand Up @@ -102,6 +99,9 @@ RUN echo "Installing Packages ..." \
&& update-alternatives --set iptables /usr/sbin/iptables-legacy \
&& update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy

# copy in image utility scripts
COPY wrapper.sh /usr/local/bin/

# entrypoint is our wrapper script, in Prow you will need to explicitly re-specify this
ENTRYPOINT ["wrapper.sh"]
# volume for docker in docker, use an emptyDir in Prow
Expand Down

0 comments on commit c28d9ab

Please sign in to comment.