@cryptotaxi247 / kubo / commits / 0eef12a07

Added boot script to listen on 0.0.0.0

Knut Ahlers committed Feb 22, 2015 at 23:27 UTC 0eef12a07b30946f1bc1699e7a49a4aca0484262
1 file changed +4 -3
Dockerfile
+4 -3
@@ -4,11 +4,12 @@ MAINTAINER Brian Tiger Chow <btc@perfmode.com>
4 ADD . /go/src/github.com/jbenet/go-ipfs
5 RUN cd /go/src/github.com/jbenet/go-ipfs/cmd/ipfs && go install
6
7 -EXPOSE 4001 5001 4002/udp 8080
7 +RUN echo -n "#!/bin/bash\nipfs init\nipfs config Addresses.API /ip4/0.0.0.0/tcp/5001\nipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080\nipfs daemon" > /usr/local/bin/start_ipfs && \
8 + chmod 755 /usr/local/bin/start_ipfs
9
9 -ENTRYPOINT ["ipfs"]
10 +EXPOSE 4001 5001 4002/udp 8080
11
11 -CMD ["daemon", "--init"]
12 +ENTRYPOINT ["/usr/local/bin/start_ipfs"]
13
14 # build: docker build -t go-ipfs .
15 # run: docker run -p 4001:4001 -p 5001:5001 go-ipfs:latest daemon --init