mirror of
https://github.com/status-im/libp2p-test-plans.git
synced 2025-01-13 00:04:17 +00:00
15 lines
227 B
Docker
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" ]
|