Skip to content

Instantly share code, notes, and snippets.

@dukejones
Created October 26, 2016 04:35
Show Gist options
  • Save dukejones/97ebc78936ad25cf35fc847bb0aa5657 to your computer and use it in GitHub Desktop.
Save dukejones/97ebc78936ad25cf35fc847bb0aa5657 to your computer and use it in GitHub Desktop.
Dockerfile for zcash standalone miner from str4d
FROM ubuntu:xenial
RUN apt-get -y update
RUN apt-get install -y build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool \
ncurses-dev unzip git python zlib1g-dev wget bsdmainutils automake
RUN git clone https://github.com/str4d/zcash.git \
&& cd zcash \
&& git checkout standalone-miner
RUN /zcash/zcutil/build.sh -j$(nproc)
EXPOSE 22
CMD ["./src/zcash-miner", "-stratum=stratum+tcp://zec.suprnova.cc:2142", "-user=macbook", "-password=M4cBook", "-debug", "-printtoconsole", "-equihashsolver=tromp", "-genproclimit=3"]
# IMAGE=docker build -q .
# BOX=docker run -dP $IMAGE
# docker exec $BOX tail -f /root/.zcash/testnet3/debug.log
# docker exec -it $BOX /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment