diff --git a/Dockerfile b/Dockerfile index 3e036c0..838e290 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,6 @@ FROM ubuntu:22.04 # Update the package list, install sudo, create a non-root user, and grant password-less sudo permissions RUN apt update RUN apt install -y sudo -RUN addgroup nonroot RUN sudo apt-get update #Instalando Curl diff --git a/entrypoint.sh b/entrypoint.sh index a5f0d93..163a94d 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,8 +3,10 @@ if [[ -z "${HOME_USER}" ]]; then HOME_USER="vscode" fi +addgroup nonroot adduser --disabled-password --gecos "" ${HOME_USER} echo "${HOME_USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers + sudo su - ${HOME_USER} if [[ -z "${VSCODE_TUNNEL_NAME}" ]]; then diff --git a/version.txt b/version.txt index f9cbc01..337a6a8 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.0.7 \ No newline at end of file +1.0.8 \ No newline at end of file