xref: /aosp_15_r20/external/grpc-grpc/third_party/rake-compiler-dock/rake_x86-mingw32/Dockerfile (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
1FROM ghcr.io/rake-compiler/rake-compiler-dock-image:1.4.0-mri-x86-mingw32
2
3RUN find / -name win32.h | while read f ; do sed -i 's/gettimeofday/rb_gettimeofday/' $f ; done
4
5#=================
6# Install ccache
7
8# Install ccache from source since ccache 3.x packaged with most linux distributions
9# does not support Redis backend for caching.
10RUN curl -sSL -o ccache.tar.gz https://github.com/ccache/ccache/releases/download/v4.5.1/ccache-4.5.1.tar.gz \
11    && tar -zxf ccache.tar.gz \
12    && cd ccache-4.5.1 \
13    && mkdir build && cd build \
14    && cmake -DCMAKE_BUILD_TYPE=Release -DZSTD_FROM_INTERNET=ON -DHIREDIS_FROM_INTERNET=ON .. \
15    && make -j4 && make install \
16    && cd ../.. \
17    && rm -rf ccache-4.5.1 ccache.tar.gz
18