优化 docker 构建流程
This commit is contained in:
17
.dockerignore
Normal file
17
.dockerignore
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# Dependencies and local build output
|
||||||
|
node_modules
|
||||||
|
.next
|
||||||
|
out
|
||||||
|
build
|
||||||
|
dist
|
||||||
|
coverage
|
||||||
|
*.tsbuildinfo
|
||||||
|
|
||||||
|
# Version control and editor files
|
||||||
|
.git
|
||||||
|
.idea
|
||||||
|
.vscode
|
||||||
|
.zed
|
||||||
|
|
||||||
|
# Local logs
|
||||||
|
*.log
|
||||||
@@ -9,8 +9,7 @@ if ($confrim -ne "y") {
|
|||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
docker build -t repo.lanhuip.com/lanhu/admin:latest .
|
docker build -t repo.lanhuip.com/lanhu/admin:latest -t repo.lanhuip.com/lanhu/admin:$($args[0]) .
|
||||||
docker build -t repo.lanhuip.com/lanhu/admin:$($args[0]) .
|
|
||||||
|
|
||||||
docker push repo.lanhuip.com/lanhu/admin:latest
|
docker push repo.lanhuip.com/lanhu/admin:latest
|
||||||
docker push repo.lanhuip.com/lanhu/admin:$($args[0])
|
docker push repo.lanhuip.com/lanhu/admin:$($args[0])
|
||||||
|
|||||||
Reference in New Issue
Block a user