acgetchell / vcpkg-image

A small Linux image with a modern compiler and vcpkg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vcpkg-image

A small Alpine or Ubuntu Linux image with gcc-13 and vcpkg, plus prerequisites to install packages such as gmp, boost, and cgal.

vcpkg is located in /vcpkg (available via $VCPKG_ROOT), and user-wide integration (vcpkg integrate install) has been applied. vcpkg is also required to use system-installed CMake and Ninja rather than downloading it's own copies.

As vcpkg requires CMake 3.21 or later, the latest stable version of CMake is downloaded and installed.

CMake projects should use:

"-D CMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake"

Building

docker build -t vcpkg-image .

Running

docker run -it --name vcpkg vcpkg-image

For background see Using multi-stage containers for C++ development.

About

A small Linux image with a modern compiler and vcpkg

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Dockerfile 100.0%