1*c8dee2aaSAndroid Build Coastguard Worker# Dockerfile for building Skia in release mode, using 3rd party libs from DEPS, with SwiftShader. 2*c8dee2aaSAndroid Build Coastguard WorkerFROM launcher.gcr.io/google/clang-debian9 AS build 3*c8dee2aaSAndroid Build Coastguard WorkerRUN apt-get update && apt-get upgrade -y && apt-get install -y \ 4*c8dee2aaSAndroid Build Coastguard Worker git \ 5*c8dee2aaSAndroid Build Coastguard Worker python \ 6*c8dee2aaSAndroid Build Coastguard Worker curl \ 7*c8dee2aaSAndroid Build Coastguard Worker build-essential \ 8*c8dee2aaSAndroid Build Coastguard Worker libfontconfig-dev \ 9*c8dee2aaSAndroid Build Coastguard Worker libgl1-mesa-dev \ 10*c8dee2aaSAndroid Build Coastguard Worker libglu1-mesa-dev 11*c8dee2aaSAndroid Build Coastguard Worker 12*c8dee2aaSAndroid Build Coastguard WorkerADD https://storage.googleapis.com/skia-swiftshader/libGLESv2.so /usr/local/lib/libGLESv2.so 13*c8dee2aaSAndroid Build Coastguard WorkerADD https://storage.googleapis.com/skia-swiftshader/libEGL.so /usr/local/lib/libEGL.so 14*c8dee2aaSAndroid Build Coastguard WorkerRUN cd /tmp \ 15*c8dee2aaSAndroid Build Coastguard Worker && git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git' \ 16*c8dee2aaSAndroid Build Coastguard Worker && git clone https://swiftshader.googlesource.com/SwiftShader swiftshader 17*c8dee2aaSAndroid Build Coastguard Worker 18*c8dee2aaSAndroid Build Coastguard WorkerRUN mkdir -m 0777 /skia