Kevin Lubick | fe6b489 | 2018-06-05 17:21:30 -0400 | [diff] [blame^] | 1 | # Dockerfile for building Skia in release mode, using 3rd party libs from DEPS, with SwiftShader. |
| 2 | FROM launcher.gcr.io/google/clang-debian9 AS build |
| 3 | RUN 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 | |
| 12 | ADD https://storage.googleapis.com/swiftshader-binaries/OpenGL_ES/Latest/Linux/libGLESv2.so /usr/local/lib/libGLESv2.so |
| 13 | ADD https://storage.googleapis.com/swiftshader-binaries/OpenGL_ES/Latest/Linux/libEGL.so /usr/local/lib/libEGL.so |
| 14 | RUN cd /tmp \ |
| 15 | && git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git' \ |
| 16 | && git clone https://swiftshader.googlesource.com/SwiftShader swiftshader |
| 17 | |
| 18 | RUN mkdir -m 0777 /skia |