forked from GoogleCloudPlatform/cloud-builders-community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (20 loc) · 817 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 gcr.io/cloud-builders/gcloud
# overridden in cloudbuild.yaml
ARG VER=v3.8.1
ENV VERSION ${VER}
COPY kustomize.bash /builder/kustomize.bash
RUN apt-get update && \
apt-get install -y wget && \
wget -nv https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2F${VERSION}/kustomize_${VERSION}_linux_amd64.tar.gz && \
tar xvzf kustomize_${VERSION}_linux_amd64.tar.gz && \
mkdir /builder/kustomize && \
mv kustomize /builder/kustomize/kustomize && \
chmod +x /builder/kustomize/kustomize && \
chmod +x /builder/kustomize.bash && \
rm kustomize_${VERSION}_linux_amd64.tar.gz && \
apt-get remove --purge -y wget && \
apt-get --purge -y autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV PATH=/builder/kustomize:$PATH
ENTRYPOINT ["/builder/kustomize.bash"]