-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (38 loc) · 973 Bytes
/
Dockerfile
File metadata and controls
44 lines (38 loc) · 973 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
39
40
41
42
43
44
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
ARG USER=ubuntu
# Install packages and clean up after
RUN apt-get update && apt-get install -y --no-install-recommends \
bash-completion \
build-essential \
cmake \
clang \
clang-format \
clang-tidy \
clangd \
curl \
doxygen \
gdb \
git \
graphviz \
lcov \
lldb \
llvm \
nano \
openssh-client \
pipx \
sudo \
unzip \
wget \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Configure user environment and permissions
RUN passwd -d ${USER} \
&& mkdir -p /home/${USER}/.cache \
&& chown -R ${USER}:${USER} /home/${USER}/.cache \
&& echo "export PROMPT_COMMAND='history -a'" >> /home/${USER}/.bashrc \
&& echo "export HISTFILE=/home/${USER}/.cache/.bash_history" >> /home/${USER}/.bashrc
USER ${USER}
# Install cmake-format
RUN pipx install cmake-format --include-deps \
&& pipx ensurepath
WORKDIR /workspace