# syntax=docker/dockerfile:1 FROM golang:1.22.5-alpine3.20 AS builder WORKDIR /app COPY go.mod go.sum ./ RUN go mod download COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -o /app/gorum FROM alpine:3.20 COPY --from=builder /app/gorum . ENTRYPOINT ["/gorum"]