33 lines
1.0 KiB
Docker
Raw Normal View History

2016-06-16 09:59:15 +02:00
# docker base image for basic networking tools
2023-06-13 13:27:52 +02:00
## Stage 1 - compile mtools (msend & mreceive)
FROM debian:bookworm-slim
2016-06-16 09:59:15 +02:00
2023-06-13 13:27:52 +02:00
RUN set -e -x \
&& cd /root \
&& export DEBIAN_FRONTEND=noninteractive \
2016-06-16 09:59:15 +02:00
&& apt-get update \
2023-06-13 13:27:52 +02:00
&& apt-get -y --no-install-recommends install \
2016-06-16 09:59:15 +02:00
gcc libc6-dev make curl ca-certificates \
2023-06-13 13:27:52 +02:00
&& curl -s -S -L -O https://github.com/troglobit/mtools/releases/download/v2.3/mtools-2.3.tar.gz \
2016-06-16 09:59:15 +02:00
&& tar xfz mtools-2.3.tar.gz \
&& cd mtools-2.3 \
&& make \
2023-06-13 13:27:52 +02:00
&& make install
## Stage 2 - Main image
FROM debian:bookworm-slim
COPY --from=0 /usr/local/sbin/* /usr/local/bin/
RUN set -e -x \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get -y --no-install-recommends install \
dumb-init curl ca-certificates iperf3 knot-host \
mtr-tiny openssh-client socat tcpdump \
net-tools iproute2 ifupdown iputils-ping \
telnet traceroute procps nano vim-tiny \
&& ln -s /usr/bin/khost /usr/local/bin/host \
2016-06-16 09:59:15 +02:00
&& rm -rf /var/lib/apt/lists/*