-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
32 lines (27 loc) · 898 Bytes
/
Dockerfile
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
29
30
31
32
FROM mcr.microsoft.com/devcontainers/cpp:dev-ubuntu-24.04
USER root
ENV VCPKG_FORCE_SYSTEM_BINARIES 1
ENV VCPKG_MANIFEST_MODE 1
# Configure apt and install packages
RUN apt-get update \
&& export DEBIAN_FRONTEND=noninteractive \
#
# Install Clang and related tools
&& apt-get -y install clang clang-format clang-tidy lld \
&& apt-get -y install libc++-dev libc++abi-dev \
#
# Install other C++ tools and Git
&& apt-get -y install cmake cppcheck valgrind git zip unzip ninja-build pkg-config linux-libc-dev \
#
# Install Python 3
&& apt-get -y install python3 python3-pip python3-venv \
#
# Clean up
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
# Install C++ dependencies using vcpkg
RUN vcpkg integrate install
# Set Clang as the default compiler
ENV CC=/usr/bin/clang
ENV CXX=/usr/bin/clang++