xref: /aosp_15_r20/external/grpc-grpc/third_party/rake-compiler-dock/rake_aarch64-linux/Dockerfile (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
1FROM ghcr.io/rake-compiler/rake-compiler-dock-image:1.4.0-mri-aarch64-linux
2
3#=================
4# Install ccache
5
6# Install ccache from source since ccache 3.x packaged with most linux distributions
7# does not support Redis backend for caching.
8RUN curl -sSL -o ccache.tar.gz https://github.com/ccache/ccache/releases/download/v4.5.1/ccache-4.5.1.tar.gz \
9    && tar -zxf ccache.tar.gz \
10    && cd ccache-4.5.1 \
11    && mkdir build && cd build \
12    && cmake -DCMAKE_BUILD_TYPE=Release -DZSTD_FROM_INTERNET=ON -DHIREDIS_FROM_INTERNET=ON .. \
13    && make -j4 && make install \
14    && cd ../.. \
15    && rm -rf ccache-4.5.1 ccache.tar.gz
16