fix: 修复Dockerfile中Go构建路径

This commit is contained in:
2026-04-27 15:56:51 +08:00
parent 53448621cb
commit 75b7a45c97
+1 -1
View File
@@ -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