14 lines
245 B
Docker
14 lines
245 B
Docker
|
FROM alpine:3.16
|
||
|
|
||
|
RUN apk add --no-cache dnsmasq
|
||
|
RUN echo -e "\
|
||
|
port=0\n\
|
||
|
enable-tftp\n\
|
||
|
tftp-root=/tftp\
|
||
|
" > /etc/dnsmasq.conf
|
||
|
|
||
|
EXPOSE 69/udp
|
||
|
VOLUME [ "/tftp" ]
|
||
|
|
||
|
ENTRYPOINT [ "dnsmasq", "--no-daemon", "--conf-file" ]
|
||
|
CMD [ "/etc/dnsmasq.conf" ]
|