Skip to content

Instantly share code, notes, and snippets.

@44uk
Last active January 7, 2018 12:01
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 44uk/3335805948e4f31a9223ec6f3420e404 to your computer and use it in GitHub Desktop.
Save 44uk/3335805948e4f31a9223ec6f3420e404 to your computer and use it in GitHub Desktop.
Dockerfile for bitzeny minerd
FROM alpine:latest
MAINTAINER Yoshiyuki Ieyama <44uk@github.com>
ENV SRCURL=https://github.com/bitzeny/cpuminer/archive/master.tar.gz
RUN apk add --update --no-cache automake autoconf gawk build-base curl curl-dev gcc tar make \
&& mkdir __workdir && cd $_ \
&& curl -kL $SRCURL | tar xz --strip=1 \
&& ./autogen.sh \
&& ./configure CFLAGS="-O3 -march=native -funroll-loops -fomit-frame-pointer" \
&& make && make install && make clean \
&& cd ../ && rm -rf __workdir
ENTRYPOINT ["minerd"]
CMD ["--help"]
# Build:
# docker build -t cpuminer .
# Usage:
# docker run --rm -d cpuminer -a yescrypt -o stratum+tcp://$HOST:$PORT -u $USER.$WORKER -p $PASSWORD
# vim:ft=dockerfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment