Add (extremely) minimal Dockerfile (#824)
This commit is contained in:
parent
80353b0ada
commit
b95a580f0c
15
contrib/Dockerfile
Normal file
15
contrib/Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
# Instructions:
|
||||
# - Configure for a static binary: ./configure --enable-static "LDFLAGS=--static" --disable-shared --without-openssl
|
||||
# - Build: make
|
||||
# - Build Docker image: docker build -t iperf3 -f contrib/Dockerfile .
|
||||
#
|
||||
# Example invocations:
|
||||
# - Help: docker run iperf3 --help
|
||||
# - Server: docker run -p 5201:5201 -it iperf3 -s
|
||||
# - Client: docker run -it iperf3 -c 192.168.1.1 (note: since this is a minimal image and does not include DNS, name resolution will not work)
|
||||
FROM scratch
|
||||
COPY src/iperf3 /iperf3
|
||||
COPY tmp /tmp
|
||||
ENTRYPOINT ["/iperf3"]
|
||||
EXPOSE 5201
|
||||
CMD ["-s"]
|
Loading…
x
Reference in New Issue
Block a user