diff --git a/Dockerfile b/Dockerfile index 1976382..447a3b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ LABEL MAINTAINERS="Guillaume Scheibel , Damien DUP # build/llo-base-images/asciidoctor-alpine/docker-asciidoctor RUN apk add --no-cache \ bash \ + sudo \ curl \ ca-certificates \ findutils \ diff --git a/startup.sh b/startup.sh index d36bd48..dd90e4b 100644 --- a/startup.sh +++ b/startup.sh @@ -55,11 +55,14 @@ read -r -d '' VAR < /home/$USER/crond/playground-sync.sh +echo "$VAR" > /home/$USER/crond/playground-npm-install.sh @@ -138,7 +139,8 @@ chown -R $USER.$USER /home/$USER chmod -R 755 /home/$USER -/home/$USER/crond/playground-start.sh /home/$USER/crond/playground-sync.sh +sudo -H -u node bash /home/$USER/crond/playground-npm-install.sh +/home/$USER/crond/playground-start.sh /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf