Skip to content

Commit 97fd5a8

Browse files
taylorsilvaRui Yang
andcommitted
update os packages when building image
Signed-off-by: Taylor Silva <tsilva@pivotal.io> Co-authored-by: Rui Yang <ruiya@vmware.com>
1 parent 6a1a171 commit 97fd5a8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dockerfiles/alpine/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN set -e; for pkg in $(go list ./...); do \
1414
done
1515

1616
FROM ${base_image} AS resource
17+
RUN apk update && apk upgrade
1718
RUN apk add --no-cache bash tzdata ca-certificates git jq openssh
1819
RUN git config --global user.email "git@localhost"
1920
RUN git config --global user.name "git"

dockerfiles/ubuntu/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ RUN set -e; for pkg in $(go list ./...); do \
1414
done
1515

1616
FROM ${base_image} AS resource
17-
RUN apt-get update \
17+
RUN apt update && apt upgrade -y -o Dpkg::Options::="--force-confdef"
18+
RUN apt update \
1819
&& DEBIAN_FRONTEND=noninteractive \
19-
apt-get install -y --no-install-recommends \
20+
apt install -y --no-install-recommends \
2021
tzdata \
2122
ca-certificates \
2223
git \

0 commit comments

Comments
 (0)