| 1 |
# Dockerfile for building Skia in release mode, using CMake. |
| 2 |
# |
| 3 |
# When updating this, you probably want to test locally. |
| 4 |
# After building with ./build.sh, run |
| 5 |
# docker run --volume $SKIA_ROOT:/SRC --volume /tmp/cmake_out:/OUT cmake-release /SRC/infra/cmake/build_skia.sh |
| 6 |
# to test it out. Then to deploy it, |
| 7 |
# - Land the change |
| 8 |
# - Use Louhi to manually build a new version |
| 9 |
# - Update infra/bots/recipe_modules/build/cmake.py to use the new version. |
| 10 |
FROM launcher.gcr.io/google/debian12 |
| 11 |
|
| 12 |
RUN apt-get update && apt-get upgrade -y && apt-get install -y \ |
| 13 |
git \ |
| 14 |
python3 \ |
| 15 |
curl \ |
| 16 |
clang-19 \ |
| 17 |
build-essential \ |
| 18 |
libfreetype6-dev \ |
| 19 |
libfontconfig-dev \ |
| 20 |
libgl1-mesa-dev \ |
| 21 |
libglu1-mesa-dev \ |
| 22 |
libxi-dev \ |
| 23 |
&& groupadd -g 2000 skia \ |
| 24 |
&& useradd -u 2000 -g 2000 --home /workspace/__cache skia |
| 25 |
|
| 26 |
RUN ln -s /usr/bin/clang-19 /usr/local/bin/clang && \ |
| 27 |
ln -s /usr/bin/clang++-19 /usr/local/bin/clang++ |
| 28 |
|
| 29 |
RUN cd /opt \ |
| 30 |
&& git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git' |
| 31 |
|
| 32 |
ADD https://github.com/Kitware/CMake/releases/download/v3.31.8/cmake-3.31.8-linux-x86_64.sh /tmp/install_cmake.sh |
| 33 |
|
| 34 |
RUN mkdir /opt/cmake && \ |
| 35 |
chmod +x /tmp/install_cmake.sh && \ |
| 36 |
/tmp/install_cmake.sh --skip-license --prefix=/opt/cmake |
| 37 |
|
| 38 |
ENV PATH="/opt/depot_tools:/opt/cmake/bin:${PATH}" |
| 39 |
|