FROM ubuntu:16.04 RUN apt-get update && \ apt-get install -y isc-dhcp-server tftpd-hpa wget RUN touch /var/lib/dhcp/dhcpd.leases RUN wget http://ftp.debian.org/debian/dists/wheezy/main/installer-amd64/current/images/netboot/netboot.tar.gz && \ mkdir /netboot && \ tar -zxf netboot.tar.gz -C /netboot && \ cp /netboot/debian-installer/amd64/pxelinux.0 /var/lib/tftpboot/pxelinux.0 && \ cp /netboot/debian-installer/amd64/boot-screens/vesamenu.c32 /var/lib/tftpboot/ COPY ./entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]