ARG GO_VERSION=1.25 FROM golang:${GO_VERSION}-alpine AS builder ENV GOFLAGS="-mod=readonly" RUN apk add --update --no-cache ca-certificates make git curl mercurial RUN mkdir -p /build WORKDIR /build RUN git clone https://github.com/jamiealquiza/sangrenel.git WORKDIR /build/sangrenel RUN go mod download && go build -o /sangrenel FROM alpine:3.22@sha256:4b7ce07002c69e8f3d704a9c5d6fd3053be500b7f1c69fc0d80990c2ad8dd412 RUN apk add --update --no-cache ca-certificates tzdata curl bash COPY --from=builder /sangrenel /sangrenel ENTRYPOINT [ "/sangrenel" ]