# High Five - ATProtocol high-five exchange app # Source: https://tangled.org/atprotofans.com/high-five # Build stage FROM golang:1.23.5-bookworm AS builder WORKDIR /app # Copy go mod files first for better layer caching COPY go.mod go.sum ./ RUN go mod download # Copy source code COPY . . # Build static binary RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /high-five-app ./cmd/server # Final stage FROM gcr.io/distroless/cc-debian12 COPY --from=builder /high-five-app /high-five-app COPY --from=builder /app/templates /templates EXPOSE 8080 ENTRYPOINT ["/high-five-app"]