2021-12-07 10:17:18 -05:00
|
|
|
#!/bin/bash
|
|
|
|
base=$(cd "$(dirname "$0")";pwd)
|
|
|
|
cd $base
|
2022-07-18 14:35:05 +08:00
|
|
|
docker run -it --rm --name buildOpenRenamer --user ${UID} -v $base/openRenamerFront:/opt/front node:lts-buster-slim bash -c "cd /opt/front && yarn --registry https://registry.npmmirror.com && yarn build"
|
2021-12-07 10:17:18 -05:00
|
|
|
|
|
|
|
rm -rf openRenamerBackend/static/*
|
|
|
|
touch openRenamerBackend/static/.gitkeep
|
|
|
|
mv openRenamerFront/dist/* openRenamerBackend/static
|
|
|
|
|
2022-07-18 11:16:47 +08:00
|
|
|
# 单平台打包并推送
|
|
|
|
#docker build -t fleyx/open-renamer:$0 --push .
|
|
|
|
# 多平台打包并推送
|
2022-07-18 13:31:59 +08:00
|
|
|
docker buildx build -t fleyx/open-renamer:$1 --platform linux/amd64,linux/arm64 --push .
|