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 <tsilva@pivotal.io>
Co-authored-by: Rui Yang <ruiya@vmware.com>
  • Loading branch information
taylorsilva and Rui Yang committed Jul 22, 2021
1 parent 36788ae commit 4125930
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions dockerfiles/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ RUN set -e; \

# stage: resource
FROM ${base_image} AS resource
RUN apk update && apk upgrade
RUN apk --no-cache add \
bash \
docker \
Expand Down
7 changes: 4 additions & 3 deletions dockerfiles/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ RUN set -e; \
# stage: resource
FROM ${base_image} AS resource

RUN apt update && apt upgrade -y -o Dpkg::Options::="--force-confdef"
# docker hosts their own packages, this steps sets up the repo for apt-get
RUN apt-get update; \
apt-get install -y --no-install-recommends \
RUN apt update; \
apt install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
Expand All @@ -37,7 +38,7 @@ RUN apt-get update; \
$(lsb_release -cs) \
stable";

RUN apt-get update && apt-get install -y --no-install-recommends \
RUN apt update && apt install -y --no-install-recommends \
docker-ce \
jq \
ca-certificates \
Expand Down

0 comments on commit 4125930

Please sign in to comment.