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