fix: 修复Dockerfile中Go构建路径
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user