2023-07-26 14:01:46 +02:00

15 lines
227 B
Docker

# Build Go Binary
FROM golang:1.20-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY *.go ./
RUN go build -o perf .
FROM alpine
COPY --from=builder /app/perf /app/perf
ENTRYPOINT [ "/app/perf" ]