Compare commits

..

4 Commits

3 changed files with 12 additions and 1 deletions

View File

@ -47,4 +47,8 @@ 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"]

View File

@ -1,6 +1,13 @@
#!/bin/bash #!/bin/bash
set -eu set -eu
# Check if we are root
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exec sudo /usr/bin/entrypoint.sh
exit 0
fi
if [[ -z "${HOME_USER-}" ]]; then if [[ -z "${HOME_USER-}" ]]; then
HOME_USER="vscode" HOME_USER="vscode"
fi fi

View File

@ -1 +1 @@
2.0.51 2.0.55