xref: /aosp_15_r20/external/skia/docker/binary-size/Dockerfile (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1# 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/
25