ceremonyclient/go-libp2p/test-plans/PingDockerfile

18 lines
343 B
Plaintext
Raw Permalink Normal View History

2023-08-21 03:50:38 +00:00
# syntax=docker/dockerfile:1
# This is run from the parent directory to copy the whole go-libp2p codebase
2024-06-08 11:32:45 +00:00
FROM golang:1.21-alpine AS builder
2023-08-21 03:50:38 +00:00
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
2024-06-08 11:32:45 +00:00
ENTRYPOINT [ "/testplan"]