diff --git a/docker/scripts/init.sh b/docker/scripts/init.sh new file mode 100644 index 00000000..17370c2d --- /dev/null +++ b/docker/scripts/init.sh @@ -0,0 +1,13 @@ +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + +if [ -z $NODEJS_VERSION ]; then + NODEJS_VERSION="10" + NODEJS_VERSION_LTS="--lts" +fi + +nvm install $NODEJS_VERSION $NODEJS_VERSION_LTS +nvm alias default $NODEJS_VERSION +nvm use default + +/etc/init.d/postgresql start