Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
update os packages 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 d9b416a commit 627a1f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions dockerfiles/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN set -e; mkdir /tests; for pkg in $(go list ./...); do \
done

FROM ${base_image} AS resource
RUN apk update && apk upgrade
RUN apk add --update bash tzdata ca-certificates git
COPY --from=builder /assets /opt/resource

Expand Down
5 changes: 3 additions & 2 deletions dockerfiles/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ RUN set -e; mkdir /tests; for pkg in $(go list ./...); do \
done

FROM ${base_image} AS resource
RUN apt-get update \
RUN apt update && apt upgrade -y -o Dpkg::Options::="--force-confdef"
RUN apt update \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
apt install -y --no-install-recommends \
tzdata \
ca-certificates \
git \
Expand Down

0 comments on commit 627a1f9

Please sign in to comment.