-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (33 loc) · 1.15 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM ubuntu:latest
ENV GOVERSION 1.10
ENV GOPATH /root/go
RUN export PATH=${PATH}:${GOPATH}/bin
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:ethereum/ethereum
RUN \
apt-get update && \
apt-get -y install git wget golang wget ethereum net-tools netcat python3
# apt-get -y install git golang-1.9-go wget ethereum netcat
#
RUN go get github.com/pkg/errors
RUN go get github.com/golang/glog
RUN go get github.com/whyrusleeping/tar-utils
RUN go get -u golang.org/x/crypto/...
RUN go get github.com/ethereum/go-ethereum
RUN go get github.com/gorilla/mux
RUN go get -u github.com/ipfs/go-ipfs-api
RUN go get github.com/ugorji/go/codec
RUN wget "https://dist.ipfs.io/go-ipfs/v0.4.17/go-ipfs_v0.4.17_linux-amd64.tar.gz" && \
tar xvfz go-ipfs_v0.4.17_linux-amd64.tar.gz && \
cd go-ipfs && \
./install.sh
#ADD ./.docker/start.sh /
#ADD . /root/go/src/ipfs-share
EXPOSE 3333
RUN cd /
#RUN chmod +x /root/go/src/ipfs-share/.docker/start.sh
ENTRYPOINT "/mounted/start.sh"
# RUN chmod +x /root/go/src/ipfs-share/.docker/start.sh
# ENTRYPOINT [ "/root/go/src/ipfs-share/.docker/start.sh" ]
# ENTRYPOINT [ "bash" ]