Skip to content

Incorrect Cmake version in DockerFile #27

@dargo600

Description

@dargo600

If I try to follow the docker instructions, the build fails to build as i have:

docker run -it lganzzzo/alpine-cmake /bin/sh
/ # cmake --version
cmake version 3.11.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).

We can bypass the error by doing by grabbing latest alpine and adding cmake to it doing something like this in the Dockerfile

RUN apk --no-cache add cmake clang clang-dev make gcc g++ libc-dev linux-headers git

and then confirming cmake version with:
/ # cmake --version
cmake version 3.31.7

So changes could be:

diff --git a/Dockerfile b/Dockerfile
index 67b1171..ea3037d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,6 @@
-FROM lganzzzo/alpine-cmake:latest
+FROM alpine:latest
+
+RUN apk --no-cache add cmake clang clang-dev make gcc g++ libc-dev linux-headers git

ADD . /service

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions