FROM ubuntu:rolling
ENV LANG=C.UTF-8
RUN sed -i "\|/usr/share/man/|s|^#*|#|" /etc/dpkg/dpkg.cfg.d/excludes && rm -f /usr/bin/man && dpkg-divert --remove --rename /usr/bin/man
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
RUN --mount=type=cache,id=ubuntu_apt-update,target=/var/lib/apt/lists --mount=type=cache,id=ubuntu_apt-install,target=/var/cache/apt apt-get update && apt-get install -y iputils-ping net-tools dnsutils vim curl telnet netcat-openbsd strace tcpdump iproute2 libfaketime lsof iftop
RUN echo "alias faketime='LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1 FAKETIME_DONT_RESET=1 FAKETIME_XRESET=1'" >> /root/.bashrc
FROM ubuntu
ENV LANG=C.UTF-8
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
RUN --mount=type=cache,id=ubuntu_lts_apt-update,target=/var/lib/apt/lists --mount=type=cache,id=ubuntu_lts_apt-install,target=/var/cache/apt apt-get update && apt-get install -y iputils-ping net-tools dnsutils vim curl telnet netcat-openbsd strace tcpdump iproute2 libfaketime lsof iftop
RUN echo "alias faketime='LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1 FAKETIME_DONT_RESET=1 FAKETIME_XRESET=1'" >> /root/.bashrc
Content type
Image
Digest
sha256:b37587a95…
Size
81.2 MB
Last updated
over 1 year ago
docker pull woshikid/ubuntu