wadoku/libp2p/publish/dockerfile

17 lines
433 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Specifies a parent image
FROM golang:1.18
# Create the app directory to hold apps source code
ADD ./libp2p-publish /go/bin/libp2p-publish
RUN mkdir -p /go/bin/out
ADD ./libp2p-publish.go /go/src/libp2p-publish.go
ADD go.mod go.sum /go/src/
# Tells Docker which network port your container listens on
EXPOSE 8080
# Specifies the executable command that runs when the container starts
ENTRYPOINT [ "/go/bin/libp2p-publish" ]