build(docker): adding a docker to get ping from inetutils 2.0

This commit is contained in:
Raphael 2026-03-28 14:38:29 +01:00
parent 9c30479fcf
commit ccdb7fa121
No known key found for this signature in database
2 changed files with 41 additions and 0 deletions

31
Dockerfile Normal file
View file

@ -0,0 +1,31 @@
FROM debian:latest
RUN apt-get update && \
apt-get install -y --force-yes \
build-essential \
wget \
tar \
make \
autoconf \
automake \
libtool \
&& \
rm -rf /var/lib/apt/lists/*
WORKDIR /tmp
RUN wget https://ftp.gnu.org/gnu/inetutils/inetutils-2.0.tar.gz && \
tar -xzf inetutils-2.0.tar.gz && \
cd inetutils-2.0 && \
./configure --disable-logger --disable-syslogd --disable-whois --disable-rcp --disable-rlogin --disable-rsh --disable-talk --disable-telnet --disable-tftp --disable-uucpd --enable-ping && \
make && \
make install && \
ldconfig
RUN ping -V
RUN useradd -m -s /bin/bash devuser && \
echo "devuser:devuser" | chpasswd
WORKDIR /home/devuser/ft_ping
USER devuser
CMD ["/bin/bash"]