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 7bae67b commit ed49275
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 ed49275

Please sign in to comment.