aboutsummaryrefslogtreecommitdiff
path: root/third_party/rake-compiler-dock/rake_x86-linux/Dockerfile
blob: f937a234722fdcc67ed469390401b6d5e7eb7ed9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM ghcr.io/rake-compiler/rake-compiler-dock-image:1.3.0-mri-x86-linux

#=================
# Install ccache

# Install ccache from source since ccache 3.x packaged with most linux distributions
# does not support Redis backend for caching.
RUN curl -sSL -o ccache.tar.gz https://github.com/ccache/ccache/releases/download/v4.5.1/ccache-4.5.1.tar.gz \
    && tar -zxf ccache.tar.gz \
    && cd ccache-4.5.1 \
    && mkdir build && cd build \
    && cmake -DCMAKE_BUILD_TYPE=Release -DZSTD_FROM_INTERNET=ON -DHIREDIS_FROM_INTERNET=ON .. \
    && make -j4 && make install \
    && cd ../.. \
    && rm -rf ccache-4.5.1 ccache.tar.gz