Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #17 from coryschwartz/dockerfile
Browse files Browse the repository at this point in the history
add dockerfile
  • Loading branch information
hsanjuan authored Jul 20, 2022
2 parents a321472 + 6f02064 commit 84a8f56
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]

0 comments on commit 84a8f56

Please sign in to comment.