CMake is an open-source, cross-platform family of tools designed to build, test, and package software. CMake is used to control the software compilation process using simple platform and compiler independent configuration files, and generate native makefiles and workspaces that can be used in the compiler environment of your choice. The suite of CMake tools was created by Kitware in response to the need for a powerful, cross-platform build environment for open-source projects such as ITK and VTK.
Dockerfile links3.17, 3.17.3, 3.17.3-bionic , 3.17-alpine, 3.17.3-alpine, 3.17.3-alpine3.11
3.16, 3.16.8, 3.17.8-bionic , 3.16-alpine, 3.16.3-alpine, 3.16.3-alpine3.11
3.15, 3.15.7, 3.15.7-bionic , 3.15-alpine, 3.15.7-alpine, 3.15.7-alpine3.11
Multi-stage docker build can be used like this for your C/C++ application:
FROM anvari/cmake:3.17.3-bionic AS build
# Add source code to image
ADD . /app
WORKDIR /app
RUN mkdir /app/build && \
cd /app/build
cmake .. && \
make
FROM ubuntu:bionic
COPY --from=build /app/build/application /usr/local/bin
CMD ["application"]
Content type
Image
Digest
Size
140.9 MB
Last updated
almost 6 years ago
Requires Docker Desktop 4.37.1 or later.