2019-01-31 17:47:20 +00:00
|
|
|
# Dockerfile for building Skia in release mode, using CMake.
|
2021-07-22 20:29:11 +00:00
|
|
|
FROM launcher.gcr.io/google/debian10
|
|
|
|
|
|
|
|
RUN echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list
|
|
|
|
|
2019-01-31 17:47:20 +00:00
|
|
|
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
|
|
|
git \
|
|
|
|
python \
|
2021-07-22 20:29:11 +00:00
|
|
|
python3 \
|
2019-01-31 17:47:20 +00:00
|
|
|
curl \
|
2021-07-22 20:29:11 +00:00
|
|
|
clang-11 \
|
2019-01-31 17:47:20 +00:00
|
|
|
build-essential \
|
2021-07-22 20:29:11 +00:00
|
|
|
cmake \
|
|
|
|
libfreetype6-dev \
|
2019-01-31 17:47:20 +00:00
|
|
|
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
|
|
|
|
2021-07-22 20:29:11 +00:00
|
|
|
RUN ln -s /usr/bin/clang-11 /usr/local/bin/clang && \
|
|
|
|
ln -s /usr/bin/clang++-11 /usr/local/bin/clang++
|
2019-01-31 17:47:20 +00:00
|
|
|
|
|
|
|
RUN cd /opt \
|
|
|
|
&& git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git'
|
|
|
|
|
|
|
|
ENV PATH="/opt/depot_tools:${PATH}"
|