forked from PIVX-Project/PIVX
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Dockerfile_windows
27 lines (18 loc) · 941 Bytes
/
Dockerfile_windows
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
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 \
curl g++-mingw-w64-i686 bsdmainutils \
&& rm -rf /var/lib/apt/lists/*
RUN update-alternatives --set i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-posix
RUN update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix
COPY / /netboxwallet
WORKDIR /netboxwallet/depends
RUN make HOST=i686-w64-mingw32 -j$(nproc)
WORKDIR /netboxwallet
RUN ./autogen.sh
RUN CONFIG_SITE=$PWD/depends/i686-w64-mingw32/share/config.site ./configure
RUN make -j$(nproc)
#RUN make install
RUN strip $PWD/src/qt/netboxwallet.exe $PWD/src/nbxd.exe $PWD/src/nbx-cli.exe $PWD/src/nbx-tx.exe
ENTRYPOINT ["/bin/bash", "-c", "cp /netboxwallet/src/{qt/netboxwallet.exe,nbxd.exe,nbx-cli.exe,nbx-tx.exe} /netboxwallet/output/win32/"]