1 Commits

Author SHA1 Message Date
bb6371dd61 优化 docker 构建流程 2026-10-15 17:45:41 +08:00
2 changed files with 13 additions and 2 deletions

12
.dockerignore Normal file
View File

@@ -0,0 +1,12 @@
# Version control and editor files
.git
.github
.idea
.vscode
.zed
# Local build output and runtime files
bin
*.exe*
*.log
data/uploads

View File

@@ -9,8 +9,7 @@ if ($confrim -ne "y") {
exit 0
}
docker build -t repo.lanhuip.com/lanhu/platform:latest .
docker build -t repo.lanhuip.com/lanhu/platform:$($args[0]) .
docker build -t repo.lanhuip.com/lanhu/platform:latest -t repo.lanhuip.com/lanhu/platform:$($args[0]) .
docker push repo.lanhuip.com/lanhu/platform:latest
docker push repo.lanhuip.com/lanhu/platform:$($args[0])