-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
32 lines (22 loc) · 1.06 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
32
FROM alpine:latest
LABEL maintainer="Dhrubajyoti Chakraborty <[email protected]>"
LABEL version="1.0"
LABEL description="Docker image for running kubeval to validate Kubernetes manifests"
RUN apk add --no-cache curl tar
RUN curl -LO "https://github.com/instrumenta/kubeval/releases/latest/download/kubeval-linux-amd64.tar.gz" && \
tar xf kubeval-linux-amd64.tar.gz && \
rm kubeval-linux-amd64.tar.gz && \
mv kubeval /usr/local/bin/
RUN apk add --no-cache ca-certificates
RUN curl -LO "https://get.helm.sh/helm-v3.7.0-linux-amd64.tar.gz" && \
tar xf helm-v3.7.0-linux-amd64.tar.gz && \
rm helm-v3.7.0-linux-amd64.tar.gz && \
mv linux-amd64/helm /usr/local/bin/
RUN apk add --no-cache git
RUN curl -LO "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v4.4.0/kustomize_v4.4.0_linux_amd64.tar.gz" && \
tar xf kustomize_v4.4.0_linux_amd64.tar.gz && \
rm kustomize_v4.4.0_linux_amd64.tar.gz && \
mv kustomize /usr/local/bin/kustomize
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]