TFTP/Dockerfile

20 lines
No EOL
525 B
Docker

FROM ubuntu:25.04
LABEL maintainer="Dylan Derr"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y --no-install-recommends busybox tftpd-hpa && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /srv/tftp && \
chmod -R 777 /srv/tftp
EXPOSE 69/udp
ENV TFTP_PORT=69
ENV TFTP_DIR=/srv/tftp
CMD bash -c "busybox syslogd -n -O /dev/stdout & \
/usr/sbin/in.tftpd --ipv4 --foreground --verbosity 4 --address 0.0.0.0:${TFTP_PORT} --secure --create ${TFTP_DIR}"