xref: /aosp_15_r20/external/skia/docker/skia-build-tools/Dockerfile (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1# Dockerfile for building an image with all the tools needed to checkout and build Skia.
2FROM launcher.gcr.io/google/debian11 AS build
3RUN apt update && apt dist-upgrade -y && apt install -y \
4  git \
5  clang \
6  python \
7  curl \
8  build-essential \
9  libfontconfig-dev \
10  libgl1-mesa-dev \
11  libglu1-mesa-dev \
12  procps \
13  && groupadd -g 2000 skia \
14  && useradd -u 2000 -g 2000 skia
15
16# TODO(kjlubick): Try a shallow clone of depot_tools
17RUN cd /tmp \
18  && git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git'
19
20ENV PATH=${PATH}:/tmp/depot_tools
21
22ADD --chown=skia:skia https://storage.googleapis.com/skia-swiftshader/libGLESv2.so /usr/local/lib/libGLESv2.so
23ADD --chown=skia:skia  https://storage.googleapis.com/skia-swiftshader/libEGL.so /usr/local/lib/libEGL.so