blob: 7bd7f6d5be8d3e9ab0e1b0954bc0bb1976f206b0 [file] [log] [blame]
# iPXE build Dockerfile
# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
# SPDX-License-Identifier: Apache-2.0
FROM debian:10.6
# Install Build packages
RUN apt-get -y update \
&& apt-get -y install build-essential genisoimage git isolinux liblzma-dev mtools syslinux \
&& apt-get autoremove \
&& apt-get clean \
&& rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* \
&& mkdir /build
# Copy ipxe source and chainloader into container
COPY ipxe /ipxe
# Perform a basic build
WORKDIR /ipxe/src
RUN make -j4 bin/undionly.kpxe
# Sleep for 10m, should be enough to perform build.
CMD ["sleep", "600"]