Commit 0eef12a0 authored by Knut Ahlers's avatar Knut Ahlers

Added boot script to listen on 0.0.0.0

parent f6e37309
......@@ -4,11 +4,12 @@ MAINTAINER Brian Tiger Chow <btc@perfmode.com>
ADD . /go/src/github.com/jbenet/go-ipfs
RUN cd /go/src/github.com/jbenet/go-ipfs/cmd/ipfs && go install
EXPOSE 4001 5001 4002/udp 8080
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 && \
chmod 755 /usr/local/bin/start_ipfs
ENTRYPOINT ["ipfs"]
EXPOSE 4001 5001 4002/udp 8080
CMD ["daemon", "--init"]
ENTRYPOINT ["/usr/local/bin/start_ipfs"]
# build: docker build -t go-ipfs .
# run: docker run -p 4001:4001 -p 5001:5001 go-ipfs:latest daemon --init
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment