Skip to content

Commit

Permalink
update os layers when bulding image
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 b24f2ea commit 2b9cec0
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 @@ -16,6 +16,7 @@ RUN set -e; for pkg in $(go list ./...); do \
done

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

Expand Down
3 changes: 2 additions & 1 deletion dockerfiles/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ RUN set -e; for pkg in $(go list ./...); do \
done

FROM ${base_image} AS resource
RUN apt-get update && apt-get install -y --no-install-recommends tzdata \
RUN apt update && apt upgrade -y -o Dpkg::Options::="--force-confdef"
RUN apt update && apt install -y --no-install-recommends tzdata \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /assets /opt/resource

Expand Down

0 comments on commit 2b9cec0

Please sign in to comment.