However ccache is not installed when building the Docker image.
With this PR, Dockerfile calls gcc and g++ directly.
Note the build fails later with:
patching file ext/openssl/ossl_ssl.c
WARNING: ruby-2.3.8 is past its end of life and is now unsupported.
It no longer receives bug fixes or critical security updates.
BUILD FAILED (Alpine Linux 3.11.13 using ruby-build 20220218)
Inspect or clean up the working tree at /tmp/ruby-build.20220627181833.12277.XFscv1
Results logged to /tmp/ruby-build.20220627181833.12277.log
Last 10 log lines:
make[1]: Leaving directory '/tmp/ruby-build.20220627181833.12277.XFscv1/ruby-2.3.8'
The Ruby openssl extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Configure options used:
--prefix=/usr/local/rbenv/versions/2.3.8-cryptcheck
--disable-install-doc
CC=gcc
LDFLAGS=-L/usr/local/rbenv/versions/2.3.8-cryptcheck/lib
CPPFLAGS=-I/usr/local/rbenv/versions/2.3.8-cryptcheck/include
CXX=g++
/usr/local/rbenv/versions/2.3.8-cryptcheck/lib/ruby/2.3.0/rubygems/ssl_certs/GlobalSignRootCA_R3.pem: No such file or directory
Currently, Makefile uses ccache: https://github.com/aeris/cryptcheck/blob/20b223ea5a31005d1d8a9a0a3dca08270d183b28/Makefile#L21-L22
However ccache is not installed when building the Docker image.
With this PR, Dockerfile calls gcc and g++ directly.
Note the build fails later with: