-
Notifications
You must be signed in to change notification settings - Fork 380
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 1.2 KB
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM mcr.microsoft.com/devcontainers/cpp:1-${templateOption:imageVariant}
ARG REINSTALL_GCC_VERSION_FROM_SOURCE="${templateOption:reinstallGccVersionFromSource}"
# Optionally install the gcc from source & override the default version
COPY ./reinstall-gcc.sh /tmp/
RUN if [ "${REINSTALL_GCC_VERSION_FROM_SOURCE}" != "none" ]; then \
chmod +x /tmp/reinstall-gcc.sh && /tmp/reinstall-gcc.sh ${REINSTALL_GCC_VERSION_FROM_SOURCE}; \
fi \
&& rm -f /tmp/reinstall-gcc.sh
ARG REINSTALL_CMAKE_VERSION_FROM_SOURCE="${templateOption:reinstallCmakeVersionFromSource}"
# Optionally install the cmake for vcpkg
COPY ./reinstall-cmake.sh /tmp/
RUN if [ "${REINSTALL_CMAKE_VERSION_FROM_SOURCE}" != "none" ]; then \
chmod +x /tmp/reinstall-cmake.sh && /tmp/reinstall-cmake.sh ${REINSTALL_CMAKE_VERSION_FROM_SOURCE}; \
fi \
&& rm -f /tmp/reinstall-cmake.sh
# [Optional] Uncomment this section to install additional vcpkg ports.
# RUN su vscode -c "${VCPKG_ROOT}/vcpkg install <your-port-name-here>"
# [Optional] Uncomment this section to install additional packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>