You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
343 B

# syntax=docker/dockerfile:1
# This is run from the parent directory to copy the whole go-libp2p codebase
FROM golang:1.23-alpine AS builder
WORKDIR /app/
COPY ./ .
WORKDIR /app/test-plans
RUN go mod download
RUN go build -o /testplan ./cmd/ping
FROM alpine
WORKDIR /app
COPY --from=builder /testplan /testplan
ENTRYPOINT [ "/testplan"]