From d8a8162ffd4ed5d10f6326e143de66722d35b2b8 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Thu, 11 Apr 2024 23:17:23 +0000 Subject: [PATCH] Making the latest changes Updating to version 2.0.49 --- Dockerfile | 4 ---- entrypoint.sh | 5 ++++- version.txt | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6e28072..f56115b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,8 +47,4 @@ RUN sudo sysctl -w fs.inotify.max_user_watches=524288 ADD ./entrypoint.sh /usr/bin/entrypoint.sh RUN sudo chmod +x /usr/bin/entrypoint.sh -USER 1000 -ENV USER=vscode -WORKDIR /home/vscode - ENTRYPOINT ["/usr/bin/entrypoint.sh"] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index d3791e5..707cd69 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -51,7 +51,10 @@ if [ "${HOME_USER-}" ]; then sudo su -l ${HOME_USER} # Delete the vscode user - sudo userdel vscode + sudo userdel -r vscode + else + # Switch to the user specified by $HOME_USER and start an interactive shell session. + sudo su -l ${HOME_USER} fi fi diff --git a/version.txt b/version.txt index 252f231..7ba8820 100755 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2.0.48 \ No newline at end of file +2.0.49 \ No newline at end of file