forked from bitmark-inc/bitmark-node-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (38 loc) · 2.05 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
42
43
44
45
46
47
48
49
FROM ubuntu
RUN apt-get -q update && \
apt-get -yq install automake autoconf pkg-config libtool software-properties-common && \
apt-get -yq install git wget net-tools vim && \
apt-get -y autoclean
RUN git clone https://github.com/vstakhov/libucl /libucl && \
cd /libucl && \
./autogen.sh && \
./configure --disable-debug --disable-dependency-tracking --disable-silent-rules --prefix=/usr/local/ && \
make install && \
rm -rf /libucl
RUN mkdir /phc-winner-argon2 && \
wget -qO- https://github.com/P-H-C/phc-winner-argon2/archive/20161029.tar.gz | tar zx --strip-components 1 -C /phc-winner-argon2 && \
cd /phc-winner-argon2 && \
make && make install PREFIX=/usr/local && \
cp /phc-winner-argon2/*.pc /usr/lib/pkgconfig/ && \
rm -rf /phc-winner-argon2
RUN add-apt-repository ppa:longsleep/golang-backports && apt-get -q update && apt-get install -yq golang-go libzmq3-dev
ENV GOPATH /go
ENV PATH="/go/bin:${PATH}"
RUN wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash && \
bash -c "source ~/.nvm/nvm.sh && nvm install v7"
ENV BITMARKD_VERSION 5.6
RUN go get -d github.com/bitmark-inc/bitmarkd || \
go install -ldflags "-X main.version=$BITMARKD_VERSION" github.com/bitmark-inc/bitmarkd/command/... && \
go get github.com/bitmark-inc/discovery && \
go get -d github.com/bitmark-inc/bitmark-wallet && \
go install github.com/bitmark-inc/bitmark-wallet
RUN go get github.com/bitmark-inc/bitmark-node
RUN cd /go/src/github.com/bitmark-inc/bitmark-node/ui && bash -c "source ~/.nvm/nvm.sh && npm install && npm run build"
ADD bitmark-node.conf.sample /.config/bitmark-node/bitmark-node.conf
ADD docker-assets/bitmarkd.conf /.config/bitmark-node/bitmarkd/bitmark/
ADD docker-assets/prooferd.conf /.config/bitmark-node/prooferd/bitmark/
ADD docker-assets/bitmarkd-test.conf /.config/bitmark-node/bitmarkd/testing/bitmarkd.conf
ADD docker-assets/prooferd-test.conf /.config/bitmark-node/prooferd/testing/prooferd.conf
ADD docker-assets/start.sh /
EXPOSE 2130 2135 2136 2150
CMD ["/start.sh"]