-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
75 lines (68 loc) · 1.55 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
FROM debian:bookworm
## Update the repository and install utils
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
sudo \
bzip2 \
unzip \
xz-utils \
python3 \
curl \
dpkg \
wget \
git \
patch \
cpio \
build-essential \
binutils \
gcc \
gcc-multilib \
g++-multilib \
qemu-system \
bison \
flex \
bc \
ruby \
make \
cmake \
autoconf \
automake \
autotools-dev \
libtool \
libmpc-dev \
telnet \
ntp \
psmisc \
net-tools \
iproute2 \
iptables \
iputils-ping
## Install python2 (deprecated)
COPY bullseye.list /etc/apt/sources.list.d/
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
python2 \
python-is-python2 && \
apt-get clean && \
rm -rf /var/lib/apt /var/cache/apt && \
rm /etc/apt/sources.list.d/bullseye.list
## Install crosscompilers
RUN for a in aarch64-elf arm-none-eabi i386-elf microblaze-elf mips-mti-elf powerpc-elf riscv64-unknown-elf sparc-elf; do \
curl -k -L "https://github.com/embox/crosstool/releases/download/2.42-13.3.0-14.2/$a-toolchain.tar.bz2" | \
tar -jxC /opt; \
done
## Set environment variables
ENV PATH=$PATH:\
/opt/aarch64-elf-toolchain/bin:\
/opt/arm-none-eabi-toolchain/bin:\
/opt/i386-elf-toolchain/bin:\
/opt/microblaze-elf-toolchain/bin:\
/opt/mips-mti-elf-toolchain/bin:\
/opt/powerpc-elf-toolchain/bin:\
/opt/riscv64-unknown-elf-toolchain/bin:\
/opt/sparc-elf-toolchain/bin
## Set working directory
VOLUME /embox
WORKDIR /embox
## Default command
CMD ["/usr/bin/bash"]