Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
0eef12a0
Commit
0eef12a0
authored
Feb 22, 2015
by
Knut Ahlers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added boot script to listen on 0.0.0.0
parent
f6e37309
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Dockerfile
Dockerfile
+4
-3
No files found.
Dockerfile
View file @
0eef12a0
...
...
@@ -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
\n
ipfs init
\n
ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001
\n
ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080
\n
ipfs daemon"
>
/usr/local/bin/start_ipfs
&&
\
chmod
755 /usr/local/bin/start_ipfs
E
NTRYPOINT
["ipfs"]
E
XPOSE
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment