Compare commits

...

8 Commits

3 changed files with 16 additions and 7 deletions

View File

@ -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 # Update the package list, install sudo, create a non-root user, and grant password-less sudo permissions
RUN apt update RUN apt update
RUN apt install -y sudo RUN apt install -y sudo
RUN addgroup nonroot
RUN sudo apt-get update RUN sudo apt-get update
#Instalando Curl #Instalando Curl

View File

@ -1,6 +1,16 @@
#!/bin/bash #!/bin/bash
[[ -z "${HOME_USER}" ]] && adduser --disabled-password --gecos "" vscode \ if [[ -z "${HOME_USER}" ]]; then
echo 'vscode ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers \ HOME_USER="vscode"
|| adduser --disabled-password --gecos "" ${HOME_USER} \ fi
echo '${HOME_USER} ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
[[ -z "${VSCODE_TUNNEL_NAME}" ]] && code tunnel --accept-server-license-terms || code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME} addgroup nonroot
adduser --disabled-password --gecos "" ${HOME_USER}
echo "${HOME_USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
su - ${HOME_USER}
if [[ -z "${VSCODE_TUNNEL_NAME}" ]]; then
code tunnel --accept-server-license-terms
else
code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME}
fi

View File

@ -1 +1 @@
1.0.3 1.0.11