Skip to content

Commit

Permalink
chore(build): upgrade Docker base image during build (#11176)
Browse files Browse the repository at this point in the history
  • Loading branch information
outsinre committed Jul 10, 2023
1 parent 4d07eb7 commit 505145b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build/dockerfiles/apk.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ ARG KONG_ARTIFACT=kong.${TARGETARCH}.apk.tar.gz
ARG KONG_ARTIFACT_PATH=
COPY ${KONG_ARTIFACT_PATH}${KONG_ARTIFACT} /tmp/kong.apk.tar.gz

RUN apk add --virtual .build-deps tar gzip \
RUN apk upgrade --update-cache \
&& apk add --virtual .build-deps tar gzip \
&& tar -C / -xzf /tmp/kong.apk.tar.gz \
&& apk add --no-cache libstdc++ libgcc pcre perl tzdata libcap zlib zlib-dev bash yaml \
&& adduser -S kong \
Expand Down
2 changes: 2 additions & 0 deletions build/dockerfiles/deb.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ ARG KONG_ARTIFACT_PATH=
COPY ${KONG_ARTIFACT_PATH}${KONG_ARTIFACT} /tmp/kong.deb

RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y autoremove \
&& apt-get install -y --no-install-recommends /tmp/kong.deb \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/kong.deb \
Expand Down
3 changes: 2 additions & 1 deletion build/dockerfiles/rpm.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ ARG KONG_ARTIFACT_PATH=
COPY ${KONG_ARTIFACT_PATH}${KONG_ARTIFACT} /tmp/kong.rpm

# hadolint ignore=DL3015
RUN yum install -y /tmp/kong.rpm \
RUN yum update -y \
&& yum install -y /tmp/kong.rpm \
&& rm /tmp/kong.rpm \
&& chown kong:0 /usr/local/bin/kong \
&& chown -R kong:0 /usr/local/kong \
Expand Down

0 comments on commit 505145b

Please sign in to comment.