From 0e84d4ccfb296cc75a83c98d894350d1e2ddde15 Mon Sep 17 00:00:00 2001 From: Ameer Hamza Date: Sun, 19 Mar 2023 14:09:42 +0800 Subject: [PATCH] Configured the image to allow autocompletion i^Capt. Added few new packages. Changed entrypoint to CMD so that it can be overwridden from command line using docker run command --- Dockerfile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 194f67b..5df0843 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,12 +4,21 @@ FROM ubuntu:${UBUNTU_VER} ARG TARGETPLATFORM +ENV TZ Asia/Hong_Kong +ENV DEBIAN_FRONTEND noninteractive + +# Enable autocompletion +RUN rm /etc/apt/apt.conf.d/docker-* +RUN echo "if [ -f /etc/bash_completion ] && ! shopt -oq posix; then \ + . /etc/bash_completion; \ + fi" >> /root/.bashrc + RUN apt update -RUN apt install -y curl wget nano lsb-core nano +RUN apt install -y curl wget nano lsb-core nano sudo bash-completion RUN apt install -y net-tools iputils-ping tcpdump traceroute iproute2 iptables iperf3 dnsutils speedtest-cli COPY scripts/entrypoint.sh /entrypoint.sh -ENTRYPOINT [ "/entrypoint.sh" ] +CMD [ "/entrypoint.sh" ]