Skip to content
Snippets Groups Projects
Commit 85e5b948 authored by ale's avatar ale
Browse files

Create a container image

parent fddcaff3
No related branches found
No related tags found
No related merge requests found
Pipeline #57382 passed
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"
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"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment