Skip to content

Commit

Permalink
Merge pull request #83 from taylorsilva/update-dockerfiles
Browse files Browse the repository at this point in the history
update os packages when building images
  • Loading branch information
concourse-bot authored Jul 21, 2021
2 parents d6249fc + 1972c39 commit 20e1741
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions dockerfiles/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down
5 changes: 3 additions & 2 deletions dockerfiles/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand All @@ -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/*
Expand Down

0 comments on commit 20e1741

Please sign in to comment.