ARG UBUNTU_VER

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 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

CMD [ "/entrypoint.sh" ]
