Docker compose build error cc: not found

While building image for send2ereader I got error cc: not found.

The error cc: not found means that the C compiler is not installed in the base image you’re using to build Docker image.

This often happens if your Dockerfile installs packages that need to be compiled from source, such as Python packages with native extensions, but the necessary build tools are missing.

Full error was:

/bin/sh: cc: not found
21.56 subprocess.CalledProcessError: Command 'cc --version' returned non-zero exit status 127.

Here’s how to fix it for alpine base image. Add command to docker file, before command that triggered error.

RUN apk add --no-cache build-base

Item added to cart.
0 items - 0,00