From e61bb80f2b92166f0ee2b21a59231f20b7116631 Mon Sep 17 00:00:00 2001 From: hongming Date: Tue, 27 Sep 2022 08:36:22 +0800 Subject: [PATCH] Bump alpine to 3.16.2 (#5249) --- build/ks-apiserver/Dockerfile | 15 +-------------- build/ks-controller-manager/Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/build/ks-apiserver/Dockerfile b/build/ks-apiserver/Dockerfile index 163a0ec05..873e16a2d 100644 --- a/build/ks-apiserver/Dockerfile +++ b/build/ks-apiserver/Dockerfile @@ -2,18 +2,6 @@ # Use of this source code is governed by an Apache license # that can be found in the LICENSE file. -# Download dependencies -FROM alpine:3.11 as base_os_context - - -ENV OUTDIR=/out -RUN mkdir -p ${OUTDIR}/usr/local/bin/ - -WORKDIR /tmp - -RUN apk add --no-cache ca-certificates - - # Build FROM golang:1.18.4 as build_context @@ -30,9 +18,8 @@ RUN mv /workspace/bin/cmd/ks-apiserver ${OUTDIR}/usr/local/bin/ # Final image ############# -FROM alpine:3.11 +FROM alpine:3.16.2 -COPY --from=base_os_context /out/ / COPY --from=build_context /out/ / WORKDIR / diff --git a/build/ks-controller-manager/Dockerfile b/build/ks-controller-manager/Dockerfile index 6af91880e..5e0e3d8bf 100644 --- a/build/ks-controller-manager/Dockerfile +++ b/build/ks-controller-manager/Dockerfile @@ -3,7 +3,7 @@ # that can be found in the LICENSE file. # Download dependencies -FROM alpine:3.11 as base_os_context +FROM alpine:3.16.2 as base_os_context ARG INGRESS_NGINX_VERSION=4.0.13 @@ -40,7 +40,7 @@ RUN mv /workspace/config/watches.yaml ${OUTDIR}/var/helm-charts/ # Final Image -FROM alpine:3.11 +FROM alpine:3.16.2 COPY --from=base_os_context /out/ / COPY --from=build_context /out/ /