Skip to content

CMake is an open-source, cross-platform family of tools designed to build, test and package software. This repo contains dockerfile for CMake docker image

License

Notifications You must be signed in to change notification settings

anvari1313/cmake-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMake Docker

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 were created by Kitware in response to the need for a powerful, cross-platform build environment for open-source projects such as ITK and VTK.

This repo contains cmake docker images. You can easily pull images with different tags based on your need from DockerHub.

Please feel free to open issue here.

How to use this image?

Multi-stage docker build can be used like this for your 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"]

About

CMake is an open-source, cross-platform family of tools designed to build, test and package software. This repo contains dockerfile for CMake docker image

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published