FROM debian:buster
RUN apt update && apt install -y xinetd tftpd-hpa
RUN mkdir -p /tftpboot && chmod -R 777 /tftpboot && chown -R nobody /tftpboot
COPY tftp.xinetd.conf /etc/xinetd.d/tftp
COPY Dockerfile /tftpboot/test
CMD ["script", "-c", "/usr/sbin/xinetd -d"]
