blob: 17601ad5002b709e8e55ab35a25f99fab2a7e40f [file] [log] [blame]
Kevin Lubick402bf742019-02-12 08:28:12 -05001# Dockerfile that bundles chromium's binary_size tools
2# to build treemaps of code size for executables.
3FROM alpine:latest as dart-sdk-checkout
4
5RUN apk update && apk upgrade && \
6 apk add git
7
8WORKDIR /tmp/
9
10RUN 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
17FROM alpine:latest as analyzer
18
19RUN apk update && apk upgrade && \
20 apk add python binutils
21
22WORKDIR /opt
23
24COPY --from=dart-sdk-checkout /tmp/sdk/runtime/third_party/ /opt/