forked from vmware-archive/kube-prod-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (15 loc) · 824 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
FROM bitnami/minideb:stretch
LABEL maintainer "Bitnami <containers@bitnami.com>"
ARG BKPR_VERSION
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN : "${BKPR_VERSION:?BKPR_VERSION build argument not specified}"
RUN install_packages wget ca-certificates \
&& mkdir -p "/usr/lib/bkpr/" \
&& wget "https://github.com/bitnami/kube-prod-runtime/releases/download/${BKPR_VERSION}/bkpr-${BKPR_VERSION}-linux-amd64.tar.gz" \
&& tar -zxf "bkpr-${BKPR_VERSION}-linux-amd64.tar.gz" -C "/usr/bin/" "bkpr-${BKPR_VERSION}/kubeprod" --strip 1 \
&& tar -zxf "bkpr-${BKPR_VERSION}-linux-amd64.tar.gz" -C "/usr/lib/bkpr/" "bkpr-${BKPR_VERSION}/manifests" --strip 1 \
&& chmod +x "/usr/bin/kubeprod" \
&& rm -rf "bkpr-${BKPR_VERSION}-linux-amd64.tar.gz"
WORKDIR /bkpr
ENTRYPOINT ["kubeprod"]
CMD ["help"]