Skip to content

Instantly share code, notes, and snippets.

@adityapk00
Created November 10, 2020 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adityapk00/421eef9d0a00eaa0d7c0da1394b1181b to your computer and use it in GitHub Desktop.
Save adityapk00/421eef9d0a00eaa0d7c0da1394b1181b to your computer and use it in GitHub Desktop.
FROM ubuntu:18.04
LABEL Description="Ubuntu 18.04 for zcash compilation"
RUN apt-get update && apt-get install -y git g++ build-essential cmake wget curl \
software-properties-common autoconf automake pkg-config libc6-dev m4 g++-multilib \
libtool ncurses-dev unzip python python-zmq zlib1g-dev curl bsdmainutils mingw-w64 git libtinfo5
RUN update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix && \
update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
@adityapk00
Copy link
Author

Running this fails reliably

docker build --tag adityapk00/zcash:latest .
docker run --rm adityapk00/zcash:latest bash -c "cd /opt && git clone https://github.com/zcash/zcash zcash-win && cd zcash-win && git checkout v4.1.0 && HOST=x86_64-w64-mingw32 ./zcutil/build.sh -j$(nproc)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment