When I ran the docker file code below
RUN apt-get update && apt-get install -y --no-install-recommends \\ ca-certificates \\ vim \\
Add build-essential to the apt-get install package list.
build-essential
It seems that your base image is very basic, and does not have gcc installed, so you cannot compile anything.
gcc