Commit 684c10c7 authored by ale's avatar ale
Browse files

Build a container image as well

parent fa672dc2
Pipeline #24112 passed with stages
in 2 minutes and 26 seconds
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"
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"]
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