-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (34 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
45 lines (34 loc) · 1.02 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
# build:
# docker build --build-arg CACHEBUST=$(date +%F) --build-arg USER=$USER -t cc:24.04 .
#
# run:
# docker run -ti -v /home:/home -w $PWD cc:24.04
#
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND noninteractive
ARG CACHEBUST
RUN apt-get update
RUN apt-get install -y bash bash-completion
RUN apt-get install -y sudo vim gawk curl wget
# build tools
RUN apt-get install -y make quilt git
# compilers
RUN apt-get install -y gcc clang
RUN apt-get install -y gcc-aarch64-linux-gnu
RUN apt-get install -y gcc-arm-linux-gnueabihf
RUN apt-get install -y gcc-riscv64-linux-gnu
# misc tools
RUN apt-get install -y inotify-tools strace ripgrep
RUN apt-get install -y mc tree htop rsync
RUN echo "dash dash/sh boolean false" | debconf-set-selections
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
ARG USER=user
RUN userdel -r ubuntu
RUN groupadd -g 1000 ${USER}
RUN useradd -g ${USER} -G sudo -u 1000 ${USER}
RUN echo "${USER} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/user
WORKDIR /home/${USER}
USER ${USER}
ENV USER ${USER}
CMD /bin/bash