修改编译脚本

This commit is contained in:
bjdgyc
2024-03-15 17:29:13 +08:00
parent 8455ef6ed4
commit cca9e377c5
6 changed files with 55 additions and 104 deletions

7
build_web.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
docker run -it --rm -v $PWD/web:/app -w /app node:16-alpine \
sh -c "yarn install --registry=https://registry.npmmirror.com && yarn run build"
rm -rf server/ui
cp -r web/ui server/ui