1+ # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.187.0/containers/cpp/.devcontainer/base.Dockerfile
2+
3+ FROM mcr.microsoft.com/vscode/devcontainers/base:0-ubuntu-20.04
4+
5+ ENV GCC_VERSION=10 \
6+ CLANG_VERSION=11 \
7+ CONAN_VERSION="1.38.0" \
8+ CONAN_PKG_VERSION="0.35.1" \
9+ CMAKE_VERSION_FULL=3.18.2 \
10+ CC=/usr/bin/gcc \
11+ CXX=/usr/bin/g++ \
12+ PYENV_ROOT=/opt/pyenv \
13+ PYTHON_VERSION=3.7.5 \
14+ PATH=/opt/pyenv/shims:${PATH} \
15+ DEBIAN_FRONTEND=noninteractive
16+
17+ SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
18+
19+ # hadolint ignore=DL3008
20+ RUN apt-get -qq update \
21+ && apt-get -qq install -y --no-install-recommends --no-install-suggests \
22+ sudo \
23+ binutils \
24+ wget \
25+ git \
26+ libc6-dev \
27+ g++-${GCC_VERSION} \
28+ clang-${CLANG_VERSION} \
29+ clang-tidy \
30+ cppcheck \
31+ valgrind \
32+ gdb \
33+ libgmp-dev \
34+ libmpfr-dev \
35+ libmpc-dev \
36+ nasm \
37+ dh-autoreconf \
38+ ninja-build \
39+ libffi-dev \
40+ libssl-dev \
41+ pkg-config \
42+ subversion \
43+ zlib1g-dev \
44+ libbz2-dev \
45+ libsqlite3-dev \
46+ libreadline-dev \
47+ xz-utils \
48+ curl \
49+ libncurses5-dev \
50+ libncursesw5-dev \
51+ liblzma-dev \
52+ ca-certificates \
53+ autoconf-archive \
54+ python \
55+ pip \
56+ && update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${GCC_VERSION} 100 \
57+ && update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-${GCC_VERSION} 100 \
58+ && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_VERSION} 100 \
59+ && update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-${GCC_VERSION} 100 \
60+ && update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${CLANG_VERSION} 100 \
61+ && update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${CLANG_VERSION} 100 \
62+ && ln -s /usr/include/locale.h /usr/include/xlocale.h \
63+ && rm -rf /var/lib/apt/lists/* \
64+ && curl -fL https://getcli.jfrog.io | sh \
65+ && mv jfrog /usr/local/bin/jfrog \
66+ && chmod +x /usr/local/bin/jfrog \
67+ && groupadd 1001 -g 1001 \
68+ && groupadd 2000 -g 2000 \
69+ && groupadd 999 -g 999 \
70+ && usermod -aG 1001,2000,999 vscode \
71+ && pip install -q --upgrade --no-cache-dir pip==21.2.1 \
72+ && pip install -q --no-cache-dir conan==${CONAN_VERSION} conan-package-tools==${CONAN_PKG_VERSION} cmake==${CMAKE_VERSION_FULL}
73+
0 commit comments