Commit 641c172b authored by ale's avatar ale
Browse files

Build a static binary including libsqlite3

parent 7201e53d
......@@ -2,7 +2,7 @@ FROM golang:1.16 AS build
ADD . /src
RUN go build -tags netgo -o /iprep ./cmd/iprep
RUN env CGO_LDFLAGS=-lm go build -ldflags "-linkmode external -extldflags -static" -tags "netgo libsqlite3" -o /iprep ./cmd/iprep
FROM scratch
COPY --from=build /iprep /iprep
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment