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
ai3
tools
tabacco
Commits
684c10c7
Commit
684c10c7
authored
Nov 22, 2021
by
ale
Browse files
Build a container image as well
parent
fa672dc2
Pipeline
#24112
passed with stages
in 2 minutes and 26 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.dockerignore
0 → 100644
View file @
684c10c7
.git
.gitlab-ci.yml
View file @
684c10c7
include
:
"
https://git.autistici.org/ai3/build-deb/raw/master/ci-backports.yml"
include
:
-
"
https://git.autistici.org/ai3/build-deb/raw/master/ci-backports.yml"
-
"
https://git.autistici.org/ai3/build-container/raw/master/common.yml"
Dockerfile
0 → 100644
View file @
684c10c7
FROM
golang:1.17.3
as
build
ADD
. /src
RUN
cd
/src
&&
\
go build
-ldflags
=
"-extldflags=-static"
-tags
"sqlite_omit_load_extension netgo"
-o
tabacco ./cmd/tabacco
&&
\
strip tabacco
FROM
scratch
COPY
--from=build /src/tabacco /tabacco
ENTRYPOINT
["/tabacco", "metadb"]
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