Last active
January 7, 2018 12:01
-
-
Save 44uk/3335805948e4f31a9223ec6f3420e404 to your computer and use it in GitHub Desktop.
Dockerfile for bitzeny minerd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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