From e6cd761787d0ce6c971c93c4998cf5ceb0af8c7b Mon Sep 17 00:00:00 2001 From: johnnyjoy Date: Sun, 2 Feb 2025 13:07:11 +0800 Subject: [PATCH] chore: remove cgo --- .goreleaser.yaml | 4 +--- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 84f97c75..016dd0e6 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -6,9 +6,7 @@ before: - go mod tidy builds: - - env: - - CGO_ENABLED=0 - main: ./bin/memos + - main: ./bin/memos binary: memos goos: - linux diff --git a/Dockerfile b/Dockerfile index 8ebee92d..27abff47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ WORKDIR /backend-build COPY . . COPY --from=frontend /frontend-build/web/dist /backend-build/server/router/frontend/dist -RUN CGO_ENABLED=0 go build -o memos ./bin/memos/main.go +RUN go build -o memos ./bin/memos/main.go # Make workspace with above generated files. FROM alpine:latest AS monolithic