diff --git a/dockerfiles/alpine/Dockerfile b/dockerfiles/alpine/Dockerfile index decd6e4..752e3cc 100644 --- a/dockerfiles/alpine/Dockerfile +++ b/dockerfiles/alpine/Dockerfile @@ -17,6 +17,7 @@ RUN set -e; for pkg in $(go list ./... | grep -v "acceptance"); do \ done FROM ${base_image} AS resource +RUN apk update && apk upgrade RUN apk add --no-cache bash tzdata ca-certificates COPY --from=builder assets/ /opt/resource/ RUN chmod +x /opt/resource/* diff --git a/dockerfiles/ubuntu/Dockerfile b/dockerfiles/ubuntu/Dockerfile index 10c6c3e..68c4b7b 100644 --- a/dockerfiles/ubuntu/Dockerfile +++ b/dockerfiles/ubuntu/Dockerfile @@ -2,7 +2,7 @@ ARG base_image ARG builder_image=concourse/golang-builder FROM ${builder_image} as builder -RUN apt-get update && apt-get install -y --no-install-recommends \ +RUN apt update && apt install -y --no-install-recommends \ curl \ jq \ && rm -rf /var/lib/apt/lists/* @@ -20,7 +20,8 @@ RUN set -e; for pkg in $(go list ./... | grep -v "acceptance"); do \ done FROM ${base_image} AS resource -RUN apt-get update && apt-get install -y --no-install-recommends \ +RUN apt update && apt upgrade -y -o Dpkg::Options::="--force-confdef" +RUN apt update && apt install -y --no-install-recommends \ tzdata \ ca-certificates \ && rm -rf /var/lib/apt/lists/*