@cryptotaxi247 / kubo / commits / 8bd381ed3

chore(docker) create a basic ipfs image

Brian Tiger Chow committed Sep 12, 2014 at 00:13 UTC 8bd381ed32f138c92bceb03ee607af066e505fe2
1 file changed +19
Dockerfile new
+19
@@ -0,0 +1,19 @@
1 +FROM golang:1.3
2 +MAINTAINER Brian Tiger Chow <btc@perfmode.com>
3 +
4 +RUN apt-get update
5 +RUN apt-get install -y fuse
6 +
7 +COPY . /go/src/github.com/jbenet/go-ipfs
8 +
9 +RUN cd /go/src/github.com/jbenet/go-ipfs/cmd/ipfs && go install
10 +RUN ipfs init
11 +RUN ipfs config Identity.Address "/ip4/127.0.0.1/tcp/4001"
12 +RUN mkdir /ipfs
13 +
14 +EXPOSE 4001
15 +
16 +CMD ["ipfs", "mount", "/ipfs"]
17 +
18 +# build: docker build -t go-ipfs .
19 +# run: docker run --privileged=true -i -t go-ipfs:latest