
This PS updates docker base urls to fix ratelimit on docker.io plus it updates some Go modules to fix CVE Change-Id: I75a9da5e2833f1eb67d880141cedd9e0f661018c
40 lines
1.2 KiB
Docker
40 lines
1.2 KiB
Docker
ARG FROM=quay.io/airshipit/ubuntu:jammy
|
|
# Build the manager binary
|
|
FROM quay.io/airshipit/golang:1.23.1-bullseye as builder
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
|
|
SHELL [ "/bin/bash", "-cex" ]
|
|
ADD . /usr/src/kubernetes-entrypoint
|
|
WORKDIR /usr/src/kubernetes-entrypoint
|
|
ENV GO111MODULE=on
|
|
ENV GOTOOLCHAIN=auto
|
|
|
|
RUN make get-modules
|
|
|
|
ARG MAKE_TARGET=build
|
|
RUN make ${MAKE_TARGET}
|
|
|
|
|
|
|
|
FROM ${FROM} as release
|
|
|
|
LABEL org.opencontainers.image.authors='airship-discuss@lists.airshipit.org, irc://#airshipit@freenode' \
|
|
org.opencontainers.image.url='https://airshipit.org' \
|
|
org.opencontainers.image.documentation='https://docs.airshipit.org/kubernetes-entrypoint' \
|
|
org.opencontainers.image.source='https://opendev.org/airship/kubernetes-entrypoint' \
|
|
org.opencontainers.image.vendor='The Airship Authors' \
|
|
org.opencontainers.image.licenses='Apache-2.0'
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
ENV LANG=C.UTF-8
|
|
ENV LC_ALL=C.UTF-8
|
|
|
|
COPY --from=builder /usr/src/kubernetes-entrypoint/bin/kubernetes-entrypoint /usr/local/bin/kubernetes-entrypoint
|
|
|
|
RUN apt update \
|
|
&& apt install -y --no-install-recommends coreutils
|
|
|
|
USER 65534
|
|
ENTRYPOINT [ "/usr/local/bin/kubernetes-entrypoint" ]
|