-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
138 lines (96 loc) · 2.62 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
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
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# BerkeleyDB v5.3.28
WORKDIR /opt
ENV BERKELEYDB_VERSION=db-5.3.28
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 sskender/altcoin-mxe:headless-lts 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 24111 24112
VOLUME ["/root/.TORUS"]
ENTRYPOINT ["./TORUSd"]
FROM base as torus-qt-unix
LABEL maintainer="Sven Skender (@sskender)"
RUN apt-get update
RUN apt-get install \
qt5-default \
qt5-qmake \
qtbase5-dev-tools \
qttools5-dev-tools \
-y
WORKDIR /opt/torus-core
COPY . .
RUN qmake && \
make RELEASE=1 USE_QRCODE=1 USE_DBUS=1 USE_UPNP=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"]
FROM sskender/altcoin-mxe:lts as torus-qt-win
LABEL maintainer="Sven Skender (@sskender)"
WORKDIR /opt/torus-core
COPY . .
RUN i686-w64-mingw32.static-qmake-qt5 \
RELEASE=1 \
USE_UPNP=1 \
USE_QRCODE=1 \
USE_DBUS=1 \
BOOST_LIB_SUFFIX=-mt \
BOOST_THREAD_LIB_SUFFIX=_win32-mt \
BOOST_INCLUDE_PATH=$MXE_INCLUDE_PATH/boost \
BOOST_LIB_PATH=$MXE_LIB_PATH \
OPENSSL_INCLUDE_PATH=$MXE_INCLUDE_PATH/openssl \
OPENSSL_LIB_PATH=$MXE_LIB_PATH \
BDB_INCLUDE_PATH=$MXE_INCLUDE_PATH \
BDB_LIB_PATH=$MXE_LIB_PATH \
MINIUPNPC_INCLUDE_PATH=$MXE_INCLUDE_PATH \
MINIUPNPC_LIB_PATH=$MXE_LIB_PATH \
QRENCODE_INCLUDE_PATH=$MXE_INCLUDE_PATH/qrencode \
QRENCODE_LIB_PATH=$MXE_LIB_PATH \
QMAKE_LRELEASE=/build/mxe/usr/i686-w64-mingw32.static/qt/bin/lrelease torus.pro
RUN make -f Makefile.Release