This repository has been archived by the owner on Sep 27, 2021. It is now read-only.
forked from cryptoshrooms/shrooms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
110 lines (72 loc) · 1.81 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
ARG UBUNTU_VERSION=16.04
FROM ubuntu:${UBUNTU_VERSION} as ubuntu
LABEL maintainer="Sven Skender (@sskender)"
FROM ubuntu as base
LABEL maintainer="Sven Skender (@sskender)"
RUN apt-get update -y
RUN apt-get install \
apt-utils \
pkg-config \
-y
RUN apt-get install \
automake \
bsdmainutils \
cmake \
curl \
libtool \
make \
python3 \
wget \
-y
RUN apt-get install \
libboost-all-dev \
libminiupnpc-dev \
libqrencode-dev \
libssl-dev \
libzmq-dev \
-y
# BerkeleyDB v4.8.30.NC
WORKDIR /opt
ENV BERKELEYDB_VERSION=db-4.8.30.NC
RUN wget "http://download.oracle.com/berkeley-db/${BERKELEYDB_VERSION}.tar.gz"
RUN tar -xvzf ${BERKELEYDB_VERSION}.tar.gz
WORKDIR /opt/${BERKELEYDB_VERSION}/build_unix
RUN ../dist/configure --with-static --enable-cxx --disable-shared --with-pic --prefix=/usr/local && \
make -j$(nproc) && \
make install
WORKDIR /opt
RUN rm ${BERKELEYDB_VERSION}.tar.gz
RUN rm -r ${BERKELEYDB_VERSION}
FROM base as torusd-unix
LABEL maintainer="Sven Skender (@sskender)"
WORKDIR /opt/torus-core
COPY . .
RUN cd src/ && \
make -f makefile.unix -j$(nproc) && \
strip TORUSd
WORKDIR /opt
RUN mv torus-core/src/TORUSd TORUSd
RUN rm -r torus-core
EXPOSE 12411 22411 32411 42411
VOLUME ["/root/.TORUS"]
ENTRYPOINT ["./TORUSd"]
FROM base as base-qt
LABEL maintainer="Sven Skender (@sskender)"
RUN apt-get install \
qt5-default \
qt5-qmake \
qtbase5-dev-tools \
qttools5-dev-tools \
-y
FROM base-qt as torus-qt-unix
LABEL maintainer="Sven Skender (@sskender)"
WORKDIR /opt/torus-core
COPY . .
RUN qmake && \
make RELEASE=1 USE_QRCODE=1 USE_DBUS=1 -j$(nproc) && \
strip TORUS-qt
WORKDIR /opt
RUN mv torus-core/TORUS-qt TORUS-qt
RUN rm -r torus-core
VOLUME ["/root/.TORUS"]
ENTRYPOINT ["./TORUS-qt"]