FROM ubuntu:latest ENV DEBIAN_FRONTEND="noninteractive" RUN apt update && apt install -y sudo zsh git curl wget nano apt-utils openssh-client gnupg2 dirmngr iproute2 procps lsof htop net-tools psmisc curl wget rsync ca-certificates unzip zip nano vim-tiny less jq lsb-release apt-transport-https dialog libc6 libgcc1 libkrb5-3 libgssapi-krb5-2 liblttng-ust0 libstdc++6 zlib1g locales sudo ncdu man-db strace manpages manpages-dev init-system-helpers # Install Current NodeJS RUN curl -SsL https://deb.nodesources.com/setup_current.x | bash - && apt install -y nodejs # Install Docker CLI RUN curl -SsL https://get.docker.com | bash - # Add User ARG USERNAME=vscode ARG USER_UID=1000 ARG USER_GID=$USER_UID RUN groupadd --gid $USER_GID $USERNAME && useradd --shell /usr/bin/zsh --gid $USERNAME -m $USERNAME && echo "${USERNAME} ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers USER $USERNAME # Install oh my zsh RUN yes | sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" && \ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting && \ git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions && \ sed -ie 's/ZSH_THEME=".*"/ZSH_THEME="strug"/g' ~/.zshrc && \ sed -ie 's/plugins=(.*)/plugins=(git docker zsh-syntax-highlighting zsh-autosuggestions)/g' ~/.zshrc