forked from piotrnar/gocoin
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (28 loc) · 1.03 KB
/
Dockerfile
File metadata and controls
40 lines (28 loc) · 1.03 KB
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
FROM salttest/ubuntu-12.04
ENV HOME /work
ENV USER_ID ${USER_ID:-1000}
ENV GROUP_ID ${GROUP_ID:-1000}
RUN groupadd -g ${GROUP_ID} parallelcoin \
&& useradd -u ${USER_ID} -g parallelcoin -s /bin/bash -m -d /work parallelcoin
RUN apt-get update; \
apt-get -y install \
build-essential git libboost-all-dev libqtgui4 qt4-qmake libqt4-dev \
libssl-dev wget curl libminiupnpc-dev libssl-dev
RUN wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz' \
&& tar -xzvf db-4.8.30.NC.tar.gz
RUN cd db-4.8.30.NC/build_unix/ \
&& ../dist/configure --enable-cxx --prefix=/usr \
&& make -j`nproc` \
&& make install
RUN git clone https://github.com/marcetin/parallelcoin.git
RUN cd parallelcoin/src \
&& make -f makefile.unix -j`nproc`
RUN cd parallelcoin \
&& qmake \
&& make -j`nproc`
RUN cp /parallelcoin/parallelcoin-qt /parallelcoin/src/parallelcoind /usr/bin/
VOLUME [ "/work" ]
WORKDIR work
EXPOSE 11047 11048
CMD su parallelcoin -c "cd /work; /usr/bin/parallelcoind"
# CMD tail -f /dev/null