summaryrefslogtreecommitdiffstats
path: root/Containerfile
blob: 2e34a8b2f9be8f448645b87a4169c2fd20207bc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM debian:12

RUN \
	apt-get update && \
	DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade && \
	DEBIAN_FRONTEND=noninteractive apt-get -y install \
		make gcc g++ xz-utils lzip \
		libmpc-dev libmpfr-dev libgmp-dev zlib1g-dev \
		python3-minimal gawk bison rsync \
		texinfo file gettext \
		bzip2 flex libssl-dev bc libcap2-bin strace \
		&& \
	apt-get clean

RUN mkdir -p /opt/toolchain/sysroot

RUN mkdir /build
RUN useradd -U -u 1000 -d /build -M build
RUN chown build:build /build

USER build
WORKDIR /build