-
Notifications
You must be signed in to change notification settings - Fork 130
/
Copy pathDockerfile
25 lines (18 loc) · 883 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM alpine:3.20.1
MAINTAINER Michal Orzechowski <[email protected]>
ARG VCS_REF
ARG BUILD_DATE
ARG TARGETARCH
# Metadata
LABEL org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/groundnuty/k8s-wait-for" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.docker.dockerfile="/Dockerfile"
ENV KUBE_LATEST_VERSION="v1.30.2"
# explicit update of libcrypto to avoid CVE-2024-5535 (until base alpine is updated)
RUN apk add --update --no-cache ca-certificates=20240226-r0 curl=8.8.0-r0 jq=1.7.1-r0 libcrypto3=3.3.1-r1\
&& curl -L https://storage.googleapis.com/kubernetes-release/release/${KUBE_LATEST_VERSION}/bin/linux/$TARGETARCH/kubectl -o /usr/local/bin/kubectl \
&& chmod +x /usr/local/bin/kubectl
# Replace for non-root version
ADD wait_for.sh /usr/local/bin/wait_for.sh
ENTRYPOINT ["wait_for.sh"]