TFTP/Dockerfile

19 lines
467 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 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 "/usr/sbin/in.tftpd --ipv4 --foreground --verbosity 4 --address 0.0.0.0:${TFTP_PORT} --secure --create ${TFTP_DIR}"