Remove dependency on CGO

This commit changes the SQLite dependency to one that does not depend on
CGO. It uses a C-to-Go translated sqlite library that is Pure go.
This commit is contained in:
Kristoffer Dalby 2022-02-22 16:18:25 +00:00
parent a37339fa54
commit bfbcea35a0
9 changed files with 192 additions and 298 deletions

View file

@ -8,7 +8,7 @@ RUN go mod download
COPY . .
RUN go install -a -ldflags="-extldflags=-static" -tags netgo,sqlite_omit_load_extension ./cmd/headscale
RUN GGO_ENABLED=0 GOOS=linux go install -a ./cmd/headscale
RUN strip /go/bin/headscale
RUN test -e /go/bin/headscale