diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f68871b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM golang:alpine as builder +WORKDIR /build +COPY . ./ +RUN go build -o /libp2p-relay-daemon ./cmd/libp2p-relay-daemon + + +FROM alpine +COPY --from=builder /libp2p-relay-daemon ./ +EXPOSE 6000/tcp +EXPOSE 4001/tcp +EXPOSE 4001/udp +ENTRYPOINT [ "./libp2p-relay-daemon" ]