Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is a multi-stage build, see
- # https://vsupalov.com/cache-docker-build-dependencies-without-volume-mounting/
- FROM debian:stretch as intermediate
- ARG SDKINSTALLER
- RUN apt-get update && \
- apt-get install --no-install-recommends -y build-essential xz-utils python3 file
- # copy from filesystem, polutes image layers but only for intermediate image
- RUN mkdir -p /deploy/sdk
- ADD ${SDKINSTALLER} /deploy/sdk/sdk.sh
- # do install
- RUN /deploy/sdk/sdk.sh -y -d /sdk
- # copy extracted SDK from intermediate, without tgz polution
- FROM debian:stretch
- COPY --from=intermediate /sdk /sdk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement