# Build stage FROM golang:1.24-alpine AS builder WORKDIR /app COPY ./ . RUN go build -o metrics-counter . # Runtime stage FROM alpine:latest WORKDIR /app COPY --from=builder /app/metrics-counter . EXPOSE 8080 CMD ["./metrics-counter"]