https://github.com/acgetchell/vcpkg-image
A small Linux image with a modern compiler and vcpkg
https://github.com/acgetchell/vcpkg-image
Last synced: 2 months ago
JSON representation
A small Linux image with a modern compiler and vcpkg
- Host: GitHub
- URL: https://github.com/acgetchell/vcpkg-image
- Owner: acgetchell
- License: bsd-3-clause
- Created: 2021-02-22T20:48:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-10-06T22:00:47.000Z (over 2 years ago)
- Last Synced: 2025-01-07T04:55:24.044Z (over 1 year ago)
- Language: Dockerfile
- Size: 45.9 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# 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:
```bash
"-D CMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake"
```
## Building
```bash
docker build -t vcpkg-image .
```
## Running
```bash
docker run -it --name vcpkg vcpkg-image
```
For background see [Using multi-stage containers for C++ development][1].
[Alpine]:https://alpinelinux.org
[Ubuntu]:https://ubuntu.com
[gcc-13]:https://gcc.gnu.org/gcc-13/
[vcpkg]:https://vcpkg.readthedocs.io/en/latest/
[CMake]:https://cmake.org
[Ninja]:https://ninja-build.org
[1]:https://devblogs.microsoft.com/cppblog/using-multi-stage-containers-for-c-development/