2019-01-31 17:47:20 +00:00
|
|
|
# Dockerfile for building Skia in release mode, using CMake.
|
|
|
|
FROM launcher.gcr.io/google/clang-debian9 AS build
|
|
|
|
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
|
|
|
git \
|
|
|
|
python \
|
|
|
|
curl \
|
|
|
|
build-essential \
|
|
|
|
libfontconfig-dev \
|
|
|
|
libgl1-mesa-dev \
|
|
|
|
libglu1-mesa-dev \
|
2019-02-01 18:32:44 +00:00
|
|
|
libxi-dev \
|
2019-01-31 17:47:20 +00:00
|
|
|
&& groupadd -g 2000 skia \
|
2019-09-25 14:45:44 +00:00
|
|
|
&& useradd -u 2000 -g 2000 --home /workspace/__cache skia
|
2019-01-31 17:47:20 +00:00
|
|
|
|
|
|
|
RUN 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
|
|
|
|
|
|
|
|
RUN cd /opt \
|
|
|
|
&& git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git'
|
|
|
|
|
|
|
|
ENV PATH="/opt/depot_tools:${PATH}"
|