From de1567b55b581c6c5d5f78f06b0e6458fa2a1256 Mon Sep 17 00:00:00 2001 From: Taylor Silva Date: Wed, 21 Jul 2021 16:38:06 -0400 Subject: [PATCH] update os package layers when building images Signed-off-by: Taylor Silva Co-authored-by: Rui Yang --- dockerfiles/alpine/Dockerfile | 1 + dockerfiles/ubuntu/Dockerfile | 1 + 2 files changed, 2 insertions(+) diff --git a/dockerfiles/alpine/Dockerfile b/dockerfiles/alpine/Dockerfile index 731079f..c875813 100644 --- a/dockerfiles/alpine/Dockerfile +++ b/dockerfiles/alpine/Dockerfile @@ -11,6 +11,7 @@ RUN set -e; for pkg in $(go list ./...); do \ done FROM ${base_image} AS resource +RUN apk update && apk upgrade RUN apk add --no-cache bash jq git git-daemon openssh RUN git config --global user.email "git@localhost" RUN git config --global user.name "git" diff --git a/dockerfiles/ubuntu/Dockerfile b/dockerfiles/ubuntu/Dockerfile index 2d3215c..789bd03 100644 --- a/dockerfiles/ubuntu/Dockerfile +++ b/dockerfiles/ubuntu/Dockerfile @@ -11,6 +11,7 @@ RUN set -e; for pkg in $(go list ./...); do \ done FROM ${base_image} AS resource +RUN apt update && apt upgrade -y -o Dpkg::Options::="--force-confdef" RUN apt-get update && apt-get install -y jq git RUN git config --global user.email "git@localhost" RUN git config --global user.name "git"