mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: disable CGO_ENABLED (#1766)
* Replace mattn/go-sqlite3 with modernc.org/sqlite * Disable CGO to make binary work without special c lib * Replace mattn/go-sqlite3 with modernc.org/sqlite in testing code * Tidy go module --------- Co-authored-by: Athurg Feng <athurg@gooth.org>
This commit is contained in:
@@ -19,7 +19,7 @@ RUN apk update && apk add --no-cache gcc musl-dev
|
||||
COPY . .
|
||||
COPY --from=frontend /frontend-build/dist ./server/dist
|
||||
|
||||
RUN go build -o memos ./main.go
|
||||
RUN CGO_ENABLED=0 go build -o memos ./main.go
|
||||
|
||||
# Make workspace with above generated files.
|
||||
FROM alpine:3.16 AS monolithic
|
||||
|
||||
Reference in New Issue
Block a user