diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index e41ce28a..721bbadc 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -2,12 +2,15 @@ set -e for plugin in `find ./plugins -mindepth 1 -maxdepth 1 -type d`; do - cd $WORKDIR/$plugin + cd ./$plugin npm install cd - done -npm run build && cp -r $WORKDIR/dist/* /usr/share/nginx/html/ +npm run build && cp -r ./dist/* /usr/share/nginx/html/ + +# remove node_modules to save image space +find ./plugins -name node_modules -exec rm -rf {} \; || true chown -R $DOCKER_UID /usr/share/nginx/html/*