david/container-dev
david
/
container-dev
Archived
1
0
Fork 0

added ping to the container

This commit is contained in:
david 2020-11-05 23:21:18 +01:00
parent ac494f897b
commit 953fc28ac5
1 changed files with 3 additions and 2 deletions

View File

@ -11,11 +11,12 @@ ENV TIMEZONE=Europe/Vienna
VOLUME [ "/home/${USERNAME}" ]
RUN apt-get update && apt-get upgrade -y && apt-get install -y sudo vim git zsh curl wget iproute2 dnsutils && \
RUN apt-get update && apt-get upgrade -y && apt-get install -y sudo vim git zsh curl wget && \
groupadd -g ${GROUP_ID} ${USERNAME} && \
useradd -u ${USER_ID} -g ${GROUP_ID} -M -d /home/${USERNAME} -s /bin/zsh ${USERNAME} && \
echo "${USERNAME} ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
ln -fs /usr/share/zoneinfo/${TIMEZONE} /etc/localtime
ln -fs /usr/share/zoneinfo/${TIMEZONE} /etc/localtime && \
apt-get install -y iproute2 dnsutils iputils-ping
USER ${USERNAME}
WORKDIR /home/${USERNAME}