Skip to content
Snippets Groups Projects
Commit 641c172b authored by ale's avatar ale
Browse files

Build a static binary including libsqlite3

parent 7201e53d
No related branches found
No related tags found
No related merge requests found
Pipeline #15024 failed
......@@ -2,7 +2,7 @@ FROM golang:1.16 AS build
ADD . /src
WORKDIR /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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment