-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmulti-arch-gnu-toolchain.dockerfile
More file actions
46 lines (40 loc) · 1.46 KB
/
multi-arch-gnu-toolchain.dockerfile
File metadata and controls
46 lines (40 loc) · 1.46 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
46
FROM ubuntu:24.04
RUN apt update \
&& apt install -y \
build-essential \
autotools-dev \
autoconf \
cmake \
ninja-build \
git \
gdb \
gdb-multiarch \
qemu-system-misc \
qemu-system-arm \
qemu-system-i386 \
qemu-system-x86 \
qemu-system-loongarch64 \
gcc-13-loongarch64-linux-gnu \
gcc-riscv64-linux-gnu \
gcc-arm-linux-gnueabi \
g++-arm-linux-gnueabi \
gcc-arm-linux-gnueabihf \
g++-arm-linux-gnueabihf \
gcc-aarch64-linux-gnu \
g++-aarch64-linux-gnu \
gcc-arm-none-eabi \
binutils-riscv64-linux-gnu \
sudo \
&& rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
ARG USERNAME=ubuntu
ARG USER_UID=1000
ARG USER_GID=$USER_UID
RUN dpkg-reconfigure sudo \
&& groupmod --gid $USER_GID $USERNAME \
&& usermod --uid $USER_UID --gid $USER_GID $USERNAME \
&& chown -R $USER_UID:$USER_GID /home/$USERNAME \
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
&& chmod 0440 /etc/sudoers.d/$USERNAME
USER $USERNAME
WORKDIR /home/$USERNAME
CMD ["/bin/bash"]