Dockerfile 351 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

7
EXPOSE 4001 5001
8

9 10
ENTRYPOINT ["ipfs"]

11
CMD ["daemon", "--init"]
12 13

# build:    docker build -t go-ipfs .
14
# run:      docker run -p 4001:4001 -p 5001:5001 go-ipfs:latest daemon --init