Skip to content

Commit

Permalink
Merge pull request kalaksi#3
Browse files Browse the repository at this point in the history
  • Loading branch information
kalaksi committed Mar 9, 2023
2 parents 407e293 + b87679a commit 25eae8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

FROM alpine:3.16.2

ENV TFTPD_BIND_ADDRESS="0.0.0.0:1069"
ENV TFTPD_EXTRA_ARGS=""

# Package will be downloaded manually since armhf has no package for syslinux (#1).
Expand Down Expand Up @@ -42,4 +43,4 @@ CMD set -eu ;\
# so use a boot directory with the special name "root" to have it's contents copied to the TFTP root directory.
# See README for an example file structure for RPi.
[ -d /tftpboot/boot/root ] && cp -af /tftpboot/boot/root/* /tftpboot ;\
exec in.tftpd -L -vvv -u ftp --secure --address 0.0.0.0:1069 $TFTPD_EXTRA_ARGS /tftpboot
exec in.tftpd -L -vvv -u ftp --secure --address "$TFTPD_BIND_ADDRESS" $TFTPD_EXTRA_ARGS /tftpboot
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ services:
# image: registry.gitlab.com/kalaksi-containers/tftpd
restart: unless-stopped
environment:
# An interface and a port to listen to. "0.0.0.0" means all interfaces
TFTPD_BIND_ADDRESS: "0.0.0.0:1069"
# Search the man page for --blocksize to learn more
TFTPD_EXTRA_ARGS: '--blocksize 1468'
cap_drop:
Expand Down

0 comments on commit 25eae8d

Please sign in to comment.