-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (26 loc) · 691 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (26 loc) · 691 Bytes
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
FROM debian:stable
ENV DEBIAN_FRONTEND=noninteractive
RUN dpkg --add-architecture amd64 \
&& apt-get update && apt-get install -y \
gcc-i686-linux-gnu \
g++-i686-linux-gnu \
binutils-i686-linux-gnu \
cmake \
make \
linux-libc-dev \
nasm \
mtools \
xorriso \
grub-pc-bin:amd64 \
grub-common \
qemu-system-x86 \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
COPY . .
RUN cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_C_COMPILER=i686-linux-gnu-gcc \
-DCMAKE_CXX_COMPILER=i686-linux-gnu-g++ \
-DCMAKE_ASM_COMPILER=i686-linux-gnu-gcc \
&& cmake --build build --target iso --parallel
CMD ["bash"]