Dockerfile 317 Bytes
Newer Older
1 2 3 4 5 6 7 8
FROM golang:1.3
MAINTAINER Brian Tiger Chow <btc@perfmode.com>

COPY . /go/src/github.com/jbenet/go-ipfs
RUN cd /go/src/github.com/jbenet/go-ipfs/cmd/ipfs && go install

EXPOSE 4001

Brian Tiger Chow's avatar
Brian Tiger Chow committed
9
CMD ["ipfs", "run"]
10 11

# build:    docker build -t go-ipfs .
Brian Tiger Chow's avatar
Brian Tiger Chow committed
12
# run:      docker run -p 4001:4001 -e "IPFS_LOGGING=debug" go-ipfs:latest