Bump alpine to 3.16.2 (#5249)

This commit is contained in:
hongming
2022-09-27 08:36:22 +08:00
committed by GitHub
parent ecf8bac31d
commit e61bb80f2b
2 changed files with 3 additions and 16 deletions

View File

@@ -2,18 +2,6 @@
# Use of this source code is governed by an Apache license # Use of this source code is governed by an Apache license
# that can be found in the LICENSE file. # 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 # Build
FROM golang:1.18.4 as build_context 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 # Final image
############# #############
FROM alpine:3.11 FROM alpine:3.16.2
COPY --from=base_os_context /out/ /
COPY --from=build_context /out/ / COPY --from=build_context /out/ /
WORKDIR / WORKDIR /

View File

@@ -3,7 +3,7 @@
# that can be found in the LICENSE file. # that can be found in the LICENSE file.
# Download dependencies # 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 ARG INGRESS_NGINX_VERSION=4.0.13
@@ -40,7 +40,7 @@ RUN mv /workspace/config/watches.yaml ${OUTDIR}/var/helm-charts/
# Final Image # Final Image
FROM alpine:3.11 FROM alpine:3.16.2
COPY --from=base_os_context /out/ / COPY --from=base_os_context /out/ /
COPY --from=build_context /out/ / COPY --from=build_context /out/ /