Skip to content

Commit

Permalink
update os package layers when building images
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Silva <[email protected]>
Co-authored-by: Rui Yang <[email protected]>
  • Loading branch information
taylorsilva and Rui Yang committed Jul 21, 2021
1 parent d196021 commit d885d10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dockerfiles/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ FROM scratch AS tests
FROM ${base_image}
COPY --from=builder assets/ /opt/resource/
RUN chmod +x /opt/resource/*
RUN apk update && apk upgrade
RUN apk --no-cache add bash wget netcat-openbsd
3 changes: 2 additions & 1 deletion dockerfiles/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ FROM scratch AS tests
FROM ${base_image} AS resource
COPY --from=builder assets/ /opt/resource/
RUN chmod +x /opt/resource/*
RUN apt-get update && apt-get -y install wget netcat-openbsd
RUN apt update && apt upgrade -y -o Dpkg::Options::="--force-confdef"
RUN apt update && apt -y install wget netcat-openbsd

0 comments on commit d885d10

Please sign in to comment.