cirocosta / estaleiro

building container images with bill of materials
Apache License 2.0
2 stars 0 forks source link

feature: external files #27

Open cirocosta opened 5 years ago

cirocosta commented 5 years ago

for instance:

FROM ubuntu:bionic AS base

    ARG HELM_RELEASE_URL=https://get.helm.sh/helm-v2.14.1-linux-amd64.tar.gz
    ARG HELM_RELEASE_SHA256SUM=804f745e6884435ef1343f4de8940f9db64f935cd9a55ad3d9153d064b7f5896

    ADD $HELM_RELEASE_URL /tmp/helm.tgz
    RUN echo "$HELM_RELEASE_SHA256SUM /tmp/helm.tgz" | sha256sum -c -

    RUN tar xvzf /tmp/helm.tgz \
        --strip-components=1 \
        -C /usr/local/bin \
        linux-amd64/helm linux-amd64/tiller

FROM ubuntu:bionic AS release

    COPY --from=base /usr/local/bin/ /usr/local/bin/
    ENTRYPOINT [ "/usr/local/bin/tiller" ]