diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bd086e31684292758c56f1b79f21abfb20197291..891dd817f8cf67a98fea0b78cac1976aca36140d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1 +1,3 @@ -include: "https://git.autistici.org/pipelines/images/test/golang/raw/master/ci.yml" +include: + - "https://git.autistici.org/pipelines/containers/raw/master/common.yml" + - "https://git.autistici.org/pipelines/images/test/golang/raw/master/ci.yml" diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..e852b413316c5cc738e86c2b46d1e5d078e45f64 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM docker.io/library/golang:1.20.1 AS build + +WORKDIR /src +ADD . /src +RUN go build -ldflags='-extldflags=-static -w -s' -tags osusergo,netgo ./cmd/replds + +FROM scratch +COPY --from=build /src/replds /replds + +ENTRYPOINT ["/replds"]