优化 docker 构建流程
This commit is contained in:
12
.dockerignore
Normal file
12
.dockerignore
Normal 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
|
||||
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user