Revert "chore/fix: switch release pipeline to goreleaser & ghcr.io (#40)" (#42)

This reverts commit b56a421ef2.
This commit is contained in:
Matthias Riegler 2023-01-28 21:42:36 +01:00 committed by GitHub
parent b56a421ef2
commit 01f689fb4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 99 additions and 54 deletions

View file

@ -1,3 +1,21 @@
FROM --platform=$BUILDPLATFORM golang:1.16.4 as base
ENV GO111MODULE=on
WORKDIR /app
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
FROM base AS builder
ENV GOARCH=$TARGETARCH
RUN CGO_ENABLED=0 go build -ldflags='-s -w -extldflags "-static"' .
FROM alpine:3.12
ENTRYPOINT ["/usr/bin/docsonnet"]
COPY docsonnet /usr/bin/docsonnet
COPY --from=builder /app/docsonnet /usr/local/bin
ENTRYPOINT ["docsonnet"]