-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (34 loc) · 957 Bytes
/
Copy pathDockerfile
File metadata and controls
38 lines (34 loc) · 957 Bytes
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
33
34
35
36
37
38
#### Base Image
FROM ubuntu:25.04 AS setup-cpp-ubuntu
USER root
RUN apt-get update -qq && \
# install nodejs
apt-get install -y --no-install-recommends nodejs npm direnv less symlinks tree vim && \
# install setup-cpp
npm install -g setup-cpp@v1.7.1 && \
# install the compiler and tools
NODE_OPTIONS="--enable-source-maps" \
setup-cpp \
--nala true \
--compiler llvm-20 \
--cmake 4.1.2 \
--ninja 1.13.0 \
# --task true \
--conan true \
--vcpkg true \
--python true \
--make true \
--cppcheck true \
--gcovr true \
--doxygen true \
--ccache true && \
# cleanup
nala autoremove -y && \
nala autopurge -y && \
apt-get clean && \
nala clean --lists && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/*
# NO! USER builder
WORKDIR /home/builder
RUN echo "eval \"\$(direnv hook bash)\"" >> ~/.bashrc