forked from PIVX-Project/PIVX
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Dockerfile_qt
41 lines (31 loc) · 1.36 KB
/
Dockerfile_qt
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:18.04 as builder
RUN apt-get update \
&& apt-get install --no-install-recommends --yes \
software-properties-common automake autoconf pkg-config libtool build-essential \
libboost-all-dev bsdmainutils libssl1.0-dev libevent-dev libgmp-dev libqrencode-dev \
qtbase5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libminiupnpc-dev
RUN add-apt-repository ppa:bitcoin/bitcoin
RUN apt-get update \
&& apt-get install --no-install-recommends --yes \
libdb4.8-dev libdb4.8++-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /netboxwallet
COPY / /netboxwallet
RUN ./autogen.sh
RUN ./configure
RUN make -j$(nproc)
#RUN make install
RUN strip $PWD/src/qt/netboxwallet
FROM ubuntu:18.04
RUN apt-get update \
&& apt-get install --no-install-recommends --yes \
software-properties-common \
&& add-apt-repository ppa:bitcoin/bitcoin \
&& apt-get update \
&& apt-get install --no-install-recommends --yes \
libboost-system1.65.1 libboost-filesystem1.65.1 libboost-program-options1.65.1 libboost-thread1.65.1 \
libboost-chrono1.65.1 libdb4.8++ libevent-2.1 libevent-pthreads-2.1 \
libqt5widgets5 libqrencode3 libprotobuf10 libminiupnpc10 libssl1.0.0 curl \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /netboxwallet/src/qt/netboxwallet /usr/local/bin/
ENTRYPOINT ["netboxwallet"]