mirror of
https://github.com/bitnami/containers.git
synced 2026-03-22 15:58:21 +08:00
26 lines
1.1 KiB
Docker
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.1-0-linux-amd64-debian-9.tar.gz && \
|
|
echo "24ba2b537663c9f8d1cca4d0761280339648d41df8a2471cc04563348345c816 /tmp/bitnami/pkg/cache/cluster-autoscaler-1.3.1-0-linux-amd64-debian-9.tar.gz" | sha256sum -c - && \
|
|
tar -zxf /tmp/bitnami/pkg/cache/cluster-autoscaler-1.3.1-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.1-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.1-debian-9-r24" \
|
|
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"]
|