| 1 |
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.238.0/containers/cpp/.devcontainer/base.Dockerfile |
| 2 |
|
| 3 |
# [Choice] Debian / Ubuntu version (use Debian 11, Ubuntu 18.04/22.04 on local arm64/Apple Silicon): debian-11, debian-10, ubuntu-22.04, ubuntu-20.04, ubuntu-18.04 |
| 4 |
ARG VARIANT="bullseye" |
| 5 |
FROM mcr.microsoft.com/vscode/devcontainers/cpp:0-${VARIANT} |
| 6 |
|
| 7 |
# [Optional] Install CMake version different from what base image has already installed. |
| 8 |
# CMake reinstall choices: none, 3.21.5, 3.22.2, or versions from https://cmake.org/download/ |
| 9 |
ARG REINSTALL_CMAKE_VERSION_FROM_SOURCE="none" |
| 10 |
|
| 11 |
# Optionally install the cmake for vcpkg |
| 12 |
COPY ./reinstall-cmake.sh /tmp/ |
| 13 |
RUN if [ "${REINSTALL_CMAKE_VERSION_FROM_SOURCE}" != "none" ]; then \ |
| 14 |
chmod +x /tmp/reinstall-cmake.sh && /tmp/reinstall-cmake.sh ${REINSTALL_CMAKE_VERSION_FROM_SOURCE}; \ |
| 15 |
fi \ |
| 16 |
&& rm -f /tmp/reinstall-cmake.sh |
| 17 |
|
| 18 |
# [Optional] Uncomment this section to install additional vcpkg ports. |
| 19 |
# RUN su vscode -c "${VCPKG_ROOT}/vcpkg install <your-port-name-here>" |
| 20 |
|
| 21 |
# [Optional] Uncomment this section to install additional packages. |
| 22 |
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ |
| 23 |
# && apt-get -y install --no-install-recommends <your-package-list-here> |