Files
ubuntu/Dockerfile
Ameer Hamza Khan 9866a5d1c5
All checks were successful
continuous-integration/drone/push Build is passing
Added the ssh server as part of base image.
2024-12-03 05:16:42 +00:00

42 lines
974 B
Docker

ARG UBUNTU_VER
FROM ubuntu:${UBUNTU_VER}
ARG TARGETPLATFORM
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-release nano sudo bash-completion jq git screen cron
RUN apt install -y net-tools iputils-ping tcpdump traceroute iproute2 iptables iperf3 dnsutils speedtest-cli
RUN apt install -y software-properties-common
RUN apt install -y openssh-server
# Installing locales
RUN apt install -y locales
ENV LC_ALL=en_US.UTF-8
ENV LANG=en_US.UTF-8
RUN locale-gen en_US.UTF-8
# Allow non-root users to run sudo command without password.
RUN echo "ALL ALL=NOPASSWD:ALL" > /etc/sudoers.d/01-allow-sudo
COPY scripts/entrypoint.sh /entrypoint.sh
ENV LOG_FILE=/dev/null
# Reset DEBIAN_FRONTEND
ENV DEBIAN_FRONTEND=""
CMD [ "/entrypoint.sh" ]