Dockerfile 375 Bytes
Newer Older
1 2 3 4 5 6
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
RUN ipfs init
7
RUN ipfs config Identity.Address "/ip4/0.0.0.0/tcp/4001"
8 9 10

EXPOSE 4001

Brian Tiger Chow's avatar
Brian Tiger Chow committed
11
CMD ["ipfs", "run"]
12 13 14

# build:    docker build -t go-ipfs .
# run:      docker run --privileged=true -i -t go-ipfs:latest