summaryrefslogtreecommitdiffstats
path: root/nfv-installer/docker-pxe-ramboot/Dockerfile
blob: f515cd370d42dfe1e950818428150ddb1a4189dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"]