2025-04-13 13:15:46 +03:00

14 lines
237 B
Docker

# 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"]