1
0
mirror of https://github.com/usememos/memos.git synced 2025-02-06 09:45:29 +00:00

chore: remove cgo

This commit is contained in:
johnnyjoy 2025-02-02 13:07:11 +08:00
parent 66db662e33
commit e6cd761787
2 changed files with 2 additions and 4 deletions

View File

@ -6,9 +6,7 @@ before:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
main: ./bin/memos
- main: ./bin/memos
binary: memos
goos:
- linux

View File

@ -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