mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-08 04:04:42 +02:00
update tftpd
This commit is contained in:
parent
9cb52ac6cd
commit
241d46662c
@ -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"]
|
||||
|
@ -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
|
||||
|
@ -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"]
|
@ -1,7 +0,0 @@
|
||||
tftpd:
|
||||
image: easypi/tftpd-arm
|
||||
ports:
|
||||
- "69:69/udp"
|
||||
volumes:
|
||||
- ./data:/tftpboot
|
||||
restart: unless-stopped
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user