Dockerfile 712 B

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