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