-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (26 loc) · 1.28 KB
/
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
26
27
28
29
30
31
FROM alpine:3
LABEL org.opencontainers.image.source https://github.com/reneluria/alpinebox
RUN apk add \
bash \
curl \
gettext \
jq \
openssl \
git \
ca-certificates
ENV kubectl_version="v1.25.3"
RUN \
curl -LO "https://dl.k8s.io/release/$kubectl_version/bin/linux/amd64/kubectl" && \
curl -LO "https://dl.k8s.io/release/$kubectl_version/bin/linux/amd64/kubectl.sha256" && \
echo "$(cat kubectl.sha256) kubectl" | sha256sum -c && \
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
rm kubectl kubectl.sha256
ENV kustomize_version="v4.5.7"
RUN \
curl -LO "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2F$kustomize_version/kustomize_${kustomize_version}_linux_amd64.tar.gz" && \
curl -LO "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2F$kustomize_version/checksums.txt" && \
grep "kustomize_${kustomize_version}_linux_amd64.tar.gz" checksums.txt | sha256sum -c && \
tar xzf "kustomize_${kustomize_version}_linux_amd64.tar.gz" && \
install -o root -g root -m 0755 kustomize /usr/local/bin/kustomize && \
rm "kustomize_${kustomize_version}_linux_amd64.tar.gz" checksums.txt
CMD ["/bin/bash"]