1
0

fix: Docker打包脚本

This commit is contained in:
TsMask
2025-05-15 15:55:57 +08:00
parent 04eb36e899
commit 0f7ff2aca7
6 changed files with 30 additions and 8 deletions

View File

@@ -8,6 +8,7 @@ ApiDir=/root/omc.git/be.ems
ApiBranch=main
# Package Catalog
BuildDir=/root/omc.git/build.ems
BuildBranch=main
BuildTmpDir=/root/omc.git/build.ems/tmp
# Default Version Value
VERSION="2.2503.2"
@@ -50,7 +51,6 @@ cp -rf $WebDir/public $BuildTmpDir/omc_web
cp -rf $WebDir/index.html $BuildTmpDir/omc_web
cp -rf $WebDir/.env.production $BuildTmpDir/omc_web
cp -rf $WebDir/.env.development $BuildTmpDir/omc_web
cp -rf $WebDir/package-lock.json $BuildTmpDir/omc_web
cp -rf $WebDir/package.json $BuildTmpDir/omc_web
cp -rf $WebDir/tsconfig.json $BuildTmpDir/omc_web
cp -rf $WebDir/tsconfig.node.json $BuildTmpDir/omc_web
@@ -90,11 +90,15 @@ echo "===> vendor data copy to $output"
# =================== build docker image
echo
cd $BuildDir
git checkout .
git pull
git checkout $BuildBranch
git pull
bash $BuildDir/build-docker.sh --version $VERSION --platform linux/amd64 --system ubuntu22.04
# Compile the front-end and back-end and then package the version
# bash pkg.sh --web -webBranch main --api -apiBranch main -v 2.2503.2
# bash pkg.sh --web --api -v 2.2503.2
# bash pkg.sh --api -apiBranch main -v 2.2503.2
# Packaged version of just the last compiled file/build directory
# bash pkg.sh -v 2.2503.2
# bash pkg-docker.sh -webBranch main -apiBranch main -v 2.2503.2
# bash pkg-docker.sh -v 2.2503.2
bash /root/omc.git/build.ems/build-docker.sh --version 2.2505.2 --platform linux/amd64 --system ubuntu22.04