-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
21 lines (16 loc) · 883 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM alpine:3.21
RUN mkdir -p /tftpboot; \
apk --update add --no-cache tftp-hpa busybox
EXPOSE 69/udp
ADD https://boot.netboot.xyz/ipxe/netboot.xyz.kpxe /tftpboot/
ADD https://boot.netboot.xyz/ipxe/netboot.xyz-undionly.kpxe /tftpboot/
ADD https://boot.netboot.xyz/ipxe/netboot.xyz.efi /tftpboot/
ADD https://boot.netboot.xyz/ipxe/netboot.xyz-snp.efi /tftpboot/
ADD https://boot.netboot.xyz/ipxe/netboot.xyz-snponly.efi /tftpboot/
ADD https://boot.netboot.xyz/ipxe/netboot.xyz-arm64.efi /tftpboot/
ADD https://boot.netboot.xyz/ipxe/netboot.xyz-arm64-snp.efi /tftpboot/
ADD https://boot.netboot.xyz/ipxe/netboot.xyz-arm64-snponly.efi /tftpboot/
ADD https://boot.netboot.xyz/ipxe/netboot.xyz-rpi4-snp.efi /tftpboot/
RUN find /tftpboot -type f -exec chmod 0444 {} +
ENTRYPOINT ["sh", "-c"]
CMD ["busybox syslogd -n -O /dev/stdout & in.tftpd -Lvvv --secure -u nobody /tftpboot"]