mirror of
https://github.com/usememos/memos.git
synced 2025-11-10 17:31:33 +08:00
chore: remove cgo
This commit is contained in:
parent
66db662e33
commit
e6cd761787
2 changed files with 2 additions and 4 deletions
|
|
@ -6,9 +6,7 @@ before:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
|
|
||||||
builds:
|
builds:
|
||||||
- env:
|
- main: ./bin/memos
|
||||||
- CGO_ENABLED=0
|
|
||||||
main: ./bin/memos
|
|
||||||
binary: memos
|
binary: memos
|
||||||
goos:
|
goos:
|
||||||
- linux
|
- linux
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ WORKDIR /backend-build
|
||||||
COPY . .
|
COPY . .
|
||||||
COPY --from=frontend /frontend-build/web/dist /backend-build/server/router/frontend/dist
|
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.
|
# Make workspace with above generated files.
|
||||||
FROM alpine:latest AS monolithic
|
FROM alpine:latest AS monolithic
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue