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