Skip to content

Commit bf8f3cf

Browse files
taylorsilvaRui Yang
and
Rui Yang
committed
update os packages when building images
Signed-off-by: Taylor Silva <tsilva@pivotal.io> Co-authored-by: Rui Yang <ruiya@vmware.com>
1 parent de16a36 commit bf8f3cf

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 unzip zip gzip tar
1819
COPY --from=builder assets/ /opt/resource/
1920
RUN chmod +x /opt/resource/*

dockerfiles/ubuntu/Dockerfile

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

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

0 commit comments

Comments
 (0)