update tftpd

This commit is contained in:
kev 2023-06-29 14:13:55 +08:00
parent 9cb52ac6cd
commit 241d46662c
5 changed files with 28 additions and 31 deletions

View File

@ -2,12 +2,14 @@
# Dockerfile for tftpd
#
FROM alpine
MAINTAINER kev <noreply@easypi.pro>
FROM alpine:3
MAINTAINER EasyPi Software Foundation
RUN apk add --no-cache tftp-hpa
VOLUME /tftpboot
WORKDIR /data
VOLUME /data
EXPOSE 69/udp
ENTRYPOINT ["in.tftpd"]
CMD ["--verbose", "--foreground", "--secure", "--create", "--user", "root", "/tftpboot"]
CMD ["--verbose", "--foreground", "--secure", "--create", "--user", "root", "/data"]

View File

@ -1,2 +1,15 @@
tftpd
=====
[tftpd][1] is a server for the Trivial File Transfer Protocol.
## up and running
```bash
$ docker-compose up -d
$ echo 'hello world' > /tmp/hello.txt
$ curl -T /tmp/hello.txt tftp://127.0.0.1
$ curl tftp://127.0.0.1/hello.txt
```
[1]: https://wiki.archlinux.org/title/TFTP

View File

@ -1,13 +0,0 @@
#
# Dockerfile for tftpd-arm
#
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
RUN apk add --no-cache tftp-hpa
VOLUME /tftpboot
EXPOSE 69/udp
ENTRYPOINT ["in.tftpd"]
CMD ["--verbose", "--foreground", "--secure", "--create", "--user", "root", "/tftpboot"]

View File

@ -1,7 +0,0 @@
tftpd:
image: easypi/tftpd-arm
ports:
- "69:69/udp"
volumes:
- ./data:/tftpboot
restart: unless-stopped

View File

@ -1,7 +1,9 @@
tftpd:
image: vimagick/tftpd
ports:
- "69:69/udp"
volumes:
- ./data:/tftpboot
restart: unless-stopped
version: "3.8"
services:
tftpd:
image: vimagick/tftpd
ports:
- "69:69/udp"
volumes:
- ./data:/data
restart: unless-stopped