Zack Williams | 9f896c4 | 2020-10-05 21:59:11 -0700 | [diff] [blame] | 1 | # iPXE build Dockerfile |
| 2 | |
| 3 | # SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | |
| 6 | FROM debian:10.6 |
| 7 | |
| 8 | # Install Build packages |
| 9 | RUN 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 |
| 17 | COPY ipxe /ipxe |
| 18 | |
| 19 | # Perform a basic build |
| 20 | WORKDIR /ipxe/src |
| 21 | RUN make -j4 bin/undionly.kpxe |
| 22 | |
| 23 | # Sleep for 10m, should be enough to perform build. |
| 24 | CMD ["sleep", "600"] |