blob: d2ba78cc882cedcde07b0503dee8d9269046b95e [file] [log] [blame]
Kevin Lubick31052382019-01-31 12:47:20 -05001# Dockerfile for building Skia in release mode, using CMake.
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 \
Kevin Lubick9a2bb092019-02-01 13:32:44 -050011 libxi-dev \
Kevin Lubick31052382019-01-31 12:47:20 -050012 && groupadd -g 2000 skia \
Joe Gregorio710b5e62019-09-25 10:45:44 -040013 && useradd -u 2000 -g 2000 --home /workspace/__cache skia
Kevin Lubick31052382019-01-31 12:47:20 -050014
15RUN curl -s "https://cmake.org/files/v3.13/cmake-3.13.1-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C /usr/local
16
17RUN cd /opt \
18 && git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git'
19
20ENV PATH="/opt/depot_tools:${PATH}"