1
github-release/Dockerfile
Vladimir Hodakov 963a09417a
All checks were successful
ci/woodpecker/tag/build/2 Pipeline was successful
ci/woodpecker/tag/build/1 Pipeline was successful
ci/woodpecker/tag/tag Pipeline was successful
Compile app as static binary
2025-06-13 14:04:52 +04:00

16 lines
338 B
Docker

ARG GOLANG_VERSION=1.24
FROM golang:${GOLANG_VERSION} as build
COPY . /src
WORKDIR /src
RUN CGO_ENABLED=0 go build -tags netgo,osusergo ./cmd/github-release
FROM scratch
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=build /src/github-release /bin/github-release
ENTRYPOINT ["/bin/github-release"]