Last active
April 19, 2020 13:32
-
-
Save Ben1980/9c5c45a59a26c87deb7cf0edc64ef975 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:stable-slim #(1) | |
LABEL maintainer="[email protected]" \ | |
description="Image which consists of C++ related build tools." \ | |
version="1.0" | |
RUN apt-get update -y && \ | |
apt-get install -y --no-install-recommends \ #(2) | |
git \ | |
openssh-server \ | |
curl \ | |
gcc \ | |
g++ \ | |
clang \ | |
build-essential \ | |
cmake \ | |
unzip \ | |
tar \ | |
gzip \ | |
sudo \ | |
python3 \ | |
python3-defusedxml \ | |
python3-lxml \ | |
libssl-dev \ | |
libffi-dev \ | |
ca-certificates && \ | |
apt-get autoclean && \ | |
apt-get autoremove && \ | |
apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* | |
ENV VCPKG_ROOT /vcpkg | |
ENV CMAKE_TOOLCHAIN_FILE ${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake | |
RUN git clone https://github.com/microsoft/vcpkg.git && \ #(3) | |
.${VCPKG_ROOT}/bootstrap-vcpkg.sh -disableMetrics && \ | |
sudo .${VCPKG_ROOT}/vcpkg integrate install && \ | |
rm -rf ${VCPKG_ROOT}/buildtrees/* && \ #(4) | |
rm -rf ${VCPKG_ROOT}/downloads/* #(4) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment