Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
silver-platter
iprep
Commits
641c172b
Commit
641c172b
authored
Apr 19, 2021
by
ale
Browse files
Build a static binary including libsqlite3
parent
7201e53d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
641c172b
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment