Skip to content

Instantly share code, notes, and snippets.

@bellflower2015
Last active August 6, 2018 15:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bellflower2015/6be92a050d61422780fa055a9b5667a3 to your computer and use it in GitHub Desktop.
Save bellflower2015/6be92a050d61422780fa055a9b5667a3 to your computer and use it in GitHub Desktop.
bitzenyplus-yespower-0.5:xenial Dockerfile
#
# docker build --tag bitzenyplus-yespower-0.5:xenial --cpuset-cpus="0,1" -f Dockerfile .
#
FROM ubuntu:xenial
RUN apt update -qq \
&& apt upgrade -qq -y \
&& apt install -qq -y \
build-essential \
libtool \
autotools-dev \
automake \
pkg-config \
bsdmainutils \
curl \
git \
g++-mingw-w64-x86-64 \
&& update-alternatives \
--set x86_64-w64-mingw32-g++ \
/usr/bin/x86_64-w64-mingw32-g++-posix \
&& git clone \
-b v3.0-dev \
--depth 1 \
https://github.com/bitzenyPlus/BitZenyPlus.git \
/BitZenyPlus
WORKDIR /BitZenyPlus/depends
RUN make HOST=x86_64-w64-mingw32 -j$(grep -c ^processor /proc/cpuinfo)
WORKDIR /BitZenyPlus
RUN ./autogen.sh \
&& CONFIG_SITE=/BitZenyPlus/depends/x86_64-w64-mingw32/share/config.site \
./configure \
--disable-tests \
&& make -j$(grep -c ^processor /proc/cpuinfo) \
&& find src -name "*.exe" -exec x86_64-w64-mingw32-strip {} + \
&& find src -name "*.exe" -exec ls -ahl {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment