Files
ofvp_Server/.devcontainer/Dockerfile
T
Sirherobrine23andGitHub b85cbf60bd Refactoring Server (#4)
* start of refactoring

* Wireguard Init

* Update

* Config

* Ssh

* ShadowSockets

* Update Dockerfile

* Pull Request Actions

* Removed Dropbear And ssh Update

* Push

* Push

* Add

* to lower case files

* Rename Dirs

* Push

* vs code Dev Conatiner

* Update devcontainer
2021-10-06 13:01:32 -03:00

23 lines
1.4 KiB
Docker

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