mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-06-19 12:28:15 -06:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
d8a8162ffd
|
|||
32d405aa80
|
@ -47,8 +47,4 @@ RUN sudo sysctl -w fs.inotify.max_user_watches=524288
|
|||||||
ADD ./entrypoint.sh /usr/bin/entrypoint.sh
|
ADD ./entrypoint.sh /usr/bin/entrypoint.sh
|
||||||
RUN sudo chmod +x /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"]
|
ENTRYPOINT ["/usr/bin/entrypoint.sh"]
|
@ -50,11 +50,11 @@ if [ "${HOME_USER-}" ]; then
|
|||||||
# Switch to the user specified by $HOME_USER and start an interactive shell session.
|
# Switch to the user specified by $HOME_USER and start an interactive shell session.
|
||||||
sudo su -l ${HOME_USER}
|
sudo su -l ${HOME_USER}
|
||||||
|
|
||||||
# Copy the HOME variable from vscode user to HOME_USER
|
# Delete the vscode user
|
||||||
sudo su -l ${HOME_USER} -c "echo \"export HOME=/home/${HOME_USER}\" >> ~/.bashrc"
|
sudo userdel -r vscode
|
||||||
|
else
|
||||||
# Source the .bashrc file to apply the changes immediately
|
# Switch to the user specified by $HOME_USER and start an interactive shell session.
|
||||||
sudo su -l ${HOME_USER} -c "source ~/.bashrc"
|
sudo su -l ${HOME_USER}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
2.0.47
|
2.0.49
|
Reference in New Issue
Block a user