From 75b7a45c97583e331d80c4e9a814df2b0a58bc72 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 27 Apr 2026 15:56:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DDockerfile=E4=B8=ADGo?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index ca3f7d5..3310dcf 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -16,7 +16,7 @@ COPY frontend ./frontend RUN npm ci --prefix frontend RUN npm run build --prefix frontend -RUN CGO_ENABLED=0 GOOS=linux go build -o /app/server ./backend/cmd/server +RUN cd backend && CGO_ENABLED=0 GOOS=linux go build -o /app/server ./cmd/server FROM alpine:latest