FROM golang:1.23-alpine3.20 as go-builder ENV GOPATH "" RUN apk add git WORKDIR /app ADD go.mod go.sum ./ RUN go mod download ADD ./ . RUN go build -o ./server . FROM alpine:3.14 COPY --from=go-builder /app/server /app/server ENTRYPOINT ["/app/server"]