mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 02:47:48 +08:00
The default Docker build creates a daemon. TODO allow bootstrap node to be overridden at runtime (perhaps with an environment variable), so we can use custom topologies in test environments. NB: We still want the default behavior to connect to Mars. TODO create a docker image that mounts and uses shared volume to make that mount accessible on the host.
15 lines
375 B
Docker
15 lines
375 B
Docker
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
|
|
RUN ipfs config Identity.Address "/ip4/0.0.0.0/tcp/4001"
|
|
|
|
EXPOSE 4001
|
|
|
|
CMD ["ipfs", "run"]
|
|
|
|
# build: docker build -t go-ipfs .
|
|
# run: docker run --privileged=true -i -t go-ipfs:latest
|