tftp-docker/Dockerfile

9 lines
357 B
Docker
Raw Normal View History

2023-01-30 14:10:02 +00:00
FROM alpine:3.16
COPY tftp-hpa-5.2-r4.apk /tmp/
COPY packager-62fdf15d.rsa.pub /etc/apk/keys/
RUN apk add --no-cache /tmp/tftp-hpa-5.2-r4.apk && rm /tmp/tftp-hpa-5.2-r4.apk
COPY remap.conf /etc/conf.d/
VOLUME /var/tftpboot
EXPOSE 69/udp
CMD ["sh", "-c", "busybox syslogd -n -O /dev/stdout & in.tftpd -Lvvv --secure /var/tftpboot -m /etc/conf.d/remap.conf"]