-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (18 loc) · 765 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (18 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM debian:bookworm-slim
WORKDIR /build
RUN apt-get update && apt-get install -y \
make \
nasm \
grub-pc-bin xorriso mtools dosfstools \
qemu-system-x86 netcat-openbsd \
build-essential bison flex libgmp3-dev libmpc-dev libmpfr-dev texinfo \
wget curl git pkg-config libssl-dev ca-certificates \
&& rm -rf /var/lib/apt/lists/*
ENV PATH="/root/.cargo/bin:${PATH}"
ARG RUST_CHANNEL=nightly
RUN curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain "${RUST_CHANNEL}" \
&& rustup component add rust-src --toolchain "${RUST_CHANNEL}"
RUN wget -O /usr/local/bin/xargo \
https://github.com/FilipToth/xargo/releases/download/target/xargo \
&& chmod +x /usr/local/bin/xargo
CMD ["make", "full_build"]