mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-03 23:38:07 +08:00
chore(docker) create a basic ipfs image
This commit is contained in:
parent
b5a1b1c658
commit
8bd381ed32
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
FROM golang:1.3
|
||||
MAINTAINER Brian Tiger Chow <btc@perfmode.com>
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y fuse
|
||||
|
||||
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/127.0.0.1/tcp/4001"
|
||||
RUN mkdir /ipfs
|
||||
|
||||
EXPOSE 4001
|
||||
|
||||
CMD ["ipfs", "mount", "/ipfs"]
|
||||
|
||||
# build: docker build -t go-ipfs .
|
||||
# run: docker run --privileged=true -i -t go-ipfs:latest
|
||||
Loading…
Reference in New Issue
Block a user