Skip to content

Commit

Permalink
Merge pull request #250 from jbenet/docker-daemon
Browse files Browse the repository at this point in the history
feat(docker) build a daemon
  • Loading branch information
jbenet committed Nov 2, 2014
2 parents c7ef55a + 06a8fee commit 07e55fc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
FROM golang:1.3
MAINTAINER Brian Tiger Chow <[email protected]>

RUN apt-get update
RUN apt-get install -y fuse

COPY . /go/src/github.com/jbenet/go-ipfs

RUN cd /go/src/github.com/jbenet/go-ipfs/cmd/ipfs && go install
RUN ipfs init
RUN ipfs config Identity.Address "/ip4/0.0.0.0/tcp/4001"
RUN mkdir /ipfs

EXPOSE 4001

CMD ["ipfs", "mount", "/ipfs"]
CMD ["ipfs", "run"]

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

0 comments on commit 07e55fc

Please sign in to comment.