1 # Dockerfile that bundles chromium's binary_size tools 2 # to build treemaps of code size for executables. 3 FROM alpine:latest as dart-sdk-checkout 4 5 RUN apk update && apk upgrade && \ 6 apk add git 7 8 WORKDIR /tmp/ 9 10 RUN git clone --depth 1 https://github.com/dart-lang/sdk.git 11 12 ############################################################################# 13 # Multi-stage build part 2, in which we only have the python runtime and 14 # and the scripts we need to analyze the binary. 15 ############################################################################# 16 17 FROM alpine:latest as analyzer 18 19 RUN apk update && apk upgrade && \ 20 apk add python binutils 21 22 WORKDIR /opt 23 24 COPY --from=dart-sdk-checkout /tmp/sdk/runtime/third_party/ /opt/ 25