From 85a1ffa37b7f6bd5e5a059cad95409486a209c8f Mon Sep 17 00:00:00 2001 From: luorijun Date: Thu, 15 Oct 2026 17:45:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20docker=20=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 17 +++++++++++++++++ publish.ps1 | 3 +-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..aad053a --- /dev/null +++ b/.dockerignore @@ -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 diff --git a/publish.ps1 b/publish.ps1 index 8fffdbc..9e2fc32 100644 --- a/publish.ps1 +++ b/publish.ps1 @@ -9,8 +9,7 @@ if ($confrim -ne "y") { exit 0 } -docker build -t repo.lanhuip.com/lanhu/admin:latest . -docker build -t repo.lanhuip.com/lanhu/admin:$($args[0]) . +docker build -t repo.lanhuip.com/lanhu/admin:latest -t repo.lanhuip.com/lanhu/admin:$($args[0]) . docker push repo.lanhuip.com/lanhu/admin:latest docker push repo.lanhuip.com/lanhu/admin:$($args[0])