bitnami-containers/bitnami/cluster-autoscaler/1/debian-9/Dockerfile

26 lines
1.1 KiB
Docker

FROM bitnami/minideb:stretch as buildenv
RUN install_packages ca-certificates libc6 wget
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/cluster-autoscaler-1.3.2-0-linux-amd64-debian-9.tar.gz && \
echo "95d806aa711df3c0772c8ab3233204d05b1c32dd8b4789aea08ef3c3fd0e1785 /tmp/bitnami/pkg/cache/cluster-autoscaler-1.3.2-0-linux-amd64-debian-9.tar.gz" | sha256sum -c - && \
tar -zxf /tmp/bitnami/pkg/cache/cluster-autoscaler-1.3.2-0-linux-amd64-debian-9.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
rm -rf /tmp/bitnami/pkg/cache/cluster-autoscaler-1.3.2-0-linux-amd64-debian-9.tar.gz
##################
FROM bitnami/minideb:stretch
LABEL maintainer "Bitnami <containers@bitnami.com>"
COPY --from=buildenv /opt/bitnami/cluster-autoscaler /opt/bitnami/cluster-autoscaler
ENV BITNAMI_APP_NAME="cluster-autoscaler" \
BITNAMI_IMAGE_VERSION="1.3.2-debian-9-r9" \
PATH="/opt/bitnami/cluster-autoscaler/bin:$PATH"
RUN install_packages ca-certificates
RUN chmod -R g+rwX /opt/bitnami/cluster-autoscaler/
COPY rootfs /
WORKDIR /opt/bitnami/cluster-autoscaler
USER 1001
CMD [ "/run.sh" ]