Skip to content

Commit

Permalink
remove plugins node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
myrho committed Jan 19, 2024
1 parent 289efda commit 20be338
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/*

Expand Down

0 comments on commit 20be338

Please sign in to comment.