From 947829e993e6bb343cac0640770c69dc6959198c Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 21 Nov 2020 00:54:49 +0200 Subject: [PATCH] set --- Dockerfile | 1 + startup.sh | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) 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