Dockerfile 616 B

123456789101112131415
  1. FROM larskanis/rake-compiler-dock-mri-x86_64-linux:1.1.0
  2. #=================
  3. # Install ccache
  4. # Install ccache from source since ccache 3.x packaged with most linux distributions
  5. # does not support Redis backend for caching.
  6. RUN curl -sSL -o ccache.tar.gz https://github.com/ccache/ccache/releases/download/v4.5.1/ccache-4.5.1.tar.gz \
  7. && tar -zxf ccache.tar.gz \
  8. && cd ccache-4.5.1 \
  9. && mkdir build && cd build \
  10. && cmake -DCMAKE_BUILD_TYPE=Release -DZSTD_FROM_INTERNET=ON -DHIREDIS_FROM_INTERNET=ON .. \
  11. && make -j4 && make install \
  12. && cd ../.. \
  13. && rm -rf ccache-4.5.1 ccache.tar.gz