Files
containers/bitnami/wavefront-hpa-adapter/0/scratch/Dockerfile
2022-07-21 14:39:11 +00:00

25 lines
1001 B
Docker

FROM bitnami/minideb:bullseye as builder
COPY prebuildfs /
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Install required system packages and dependencies
RUN install_packages ca-certificates gzip tar wget
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/wavefront-hpa-adapter-0.9.9-0-linux-amd64-debian-11.tar.gz && \
echo "ccdfff6e2ca42706130ac087efb238ffb974c4c2f351ea676c681d2baf73324f /tmp/bitnami/pkg/cache/wavefront-hpa-adapter-0.9.9-0-linux-amd64-debian-11.tar.gz" | sha256sum -c - && \
tar -zxf /tmp/bitnami/pkg/cache/wavefront-hpa-adapter-0.9.9-0-linux-amd64-debian-11.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
rm -rf /tmp/bitnami/pkg/cache/wavefront-hpa-adapter-0.9.9-0-linux-amd64-debian-11.tar.gz
######
FROM scratch
COPY prebuildfs /
COPY rootfs /
COPY --from=builder /opt/bitnami/wavefront-hpa-adapter/bin/wavefront-adapter /wavefront-adapter
USER 1001
ENTRYPOINT [ "/wavefront-adapter" ]