Skip to content

Commit

Permalink
chore: remove cgo
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyjoygh committed Feb 2, 2025
1 parent 66db662 commit e6cd761
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ before:
- go mod tidy

builds:
- env:
- CGO_ENABLED=0
main: ./bin/memos
- main: ./bin/memos
binary: memos
goos:
- linux
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6cd761

Please sign in to comment.