blob: 65e1d75ce295f957de9200827652ac058ca4e010 [file] [log] [blame]
Zack Williams9f896c42020-10-05 21:59:11 -07001# iPXE build Dockerfile
2
3# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
4# SPDX-License-Identifier: Apache-2.0
5
Zack Williams2e469712022-01-26 18:11:09 -07006FROM debian:11
Zack Williams9f896c42020-10-05 21:59:11 -07007
8# Install Build packages
9RUN apt-get -y update \
10 && apt-get -y install build-essential genisoimage git isolinux liblzma-dev mtools syslinux \
11 && apt-get autoremove \
12 && apt-get clean \
13 && rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* \
14 && mkdir /build
15
16# Copy ipxe source and chainloader into container
17COPY ipxe /ipxe
18
19# Perform a basic build
20WORKDIR /ipxe/src
21RUN make -j4 bin/undionly.kpxe
22
23# Sleep for 10m, should be enough to perform build.
24CMD ["sleep", "600"]