Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iprep
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ai3
tools
iprep
Commits
641c172b
Commit
641c172b
authored
3 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Build a static binary including libsqlite3
parent
7201e53d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#15024
failed
3 years ago
Stage: test
Stage: build_pkgsrc
Stage: build_pkg
Stage: upload_pkg
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
with
1 addition
and
1 deletion
Dockerfile
+
1
−
1
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment