From 5be74f269835034aa263b33cf13db782a92026f3 Mon Sep 17 00:00:00 2001 From: huang Date: Mon, 19 Jan 2026 17:26:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=BC=96=E8=AF=91=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=EF=BC=9A=E7=BC=96=E8=AF=91=E6=95=B4=E4=B8=AA=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E8=80=8C=E4=B8=8D=E6=98=AF=E5=8D=95=E4=B8=AA=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 1 - Dockerfile.api | 2 +- Dockerfile.worker | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.dockerignore b/.dockerignore index 152601a..9e50c35 100644 --- a/.dockerignore +++ b/.dockerignore @@ -8,7 +8,6 @@ README.md AGENTS.md CLAUDE.md docs/ -!cmd/api/docs.go specs/ openspec/ *.md diff --git a/Dockerfile.api b/Dockerfile.api index 5e91c26..063628e 100644 --- a/Dockerfile.api +++ b/Dockerfile.api @@ -24,7 +24,7 @@ COPY . . RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \ -ldflags="-w -s" \ -o /build/api \ - cmd/api/main.go + ./cmd/api # 下载 golang-migrate 工具 RUN go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest diff --git a/Dockerfile.worker b/Dockerfile.worker index 4d7a2ed..1ad240e 100644 --- a/Dockerfile.worker +++ b/Dockerfile.worker @@ -24,7 +24,7 @@ COPY . . RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \ -ldflags="-w -s" \ -o /build/worker \ - cmd/worker/main.go + ./cmd/worker # ================================ # 阶段 2: 运行阶段