mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-06-19 04:18:11 -06:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
a6e4296f25
|
|||
08cf40624d
|
@ -47,4 +47,8 @@ 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"]
|
@ -59,7 +59,7 @@ if [ "${HOME_USER-}" ]; then
|
||||
# Delete the vscode user
|
||||
if id "vscode" &>/dev/null; then
|
||||
sudo chown -R vscode:vscode /home/vscode
|
||||
sudo userdel -r vscode
|
||||
sudo -u root bash -c 'userdel -r vscode'
|
||||
fi
|
||||
else
|
||||
# Switch to the user specified by $HOME_USER and start an interactive shell session.
|
||||
|
@ -1 +1 @@
|
||||
2.0.51
|
||||
2.0.53
|
Reference in New Issue
Block a user