-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (40 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
48 lines (40 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
46
47
48
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
build-essential \
gcc g++ make cmake automake autoconf libtool \
pkg-config \
git wget curl \
tar gzip bzip2 xz-utils \
patch \
python3 python3-pip \
bison flex \
texinfo \
gawk \
bc \
libncurses5-dev \
libssl-dev \
zlib1g-dev \
libexpat1-dev \
libffi-dev \
libgmp-dev libmpc-dev libmpfr-dev \
bash \
coreutils \
linux-libc-dev \
libreadline-dev \
libpcap-dev \
parallel \
file \
rsync \
sudo \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /build/sources /build/toolchains-musl /build/toolchains-glibc /build/deps-cache && \
mkdir -p /build/output /build/logs && \
mkdir -p /build/scripts
RUN useradd -m -s /bin/bash builder && \
echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN chown -R builder:builder /build
USER builder
WORKDIR /build
COPY --chown=builder:builder scripts/ /build/scripts/
CMD ["/bin/bash"]