Moved the container startup script to bin
Knut Ahlers committed
Feb 23, 2015 at 00:08 UTC
ab28018f8c8d6522a8428db14aa8df53ddf1aeed
2 files changed
+6
-1
Dockerfile
+1
-1
@@ -4,7 +4,7 @@ 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
-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 && \
7
+RUN cp /go/src/github.com/jbenet/go-ipfs/bin/container_daemon /usr/local/bin/start_ipfs && \
8
chmod 755 /usr/local/bin/start_ipfs
9
10
EXPOSE 4001 5001 8080
bin/container_daemon
new
+5
@@ -0,0 +1,5 @@
1
+#!/bin/bash
2
+ipfs init
3
+ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001
4
+ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080
5
+ipfs daemon