mirror of
https://github.com/JayDDee/cpuminer-opt.git
synced 2025-09-17 23:44:27 +00:00
Update Dockerfile for cpuminer-opt
This commit is contained in:
36
Dockerfile
36
Dockerfile
@@ -1,25 +1,23 @@
|
|||||||
#
|
#
|
||||||
# Dockerfile for cpuminer
|
# Dockerfile for cpuminer-opt
|
||||||
# usage: docker run creack/cpuminer --url xxxx --user xxxx --pass xxxx
|
# usage: docker build -t cpuminer-opt:latest .
|
||||||
# ex: docker run creack/cpuminer --url stratum+tcp://ltc.pool.com:80 --user creack.worker1 --pass abcdef
|
# run: docker run -it --rm cpuminer-opt:latest [ARGS]
|
||||||
#
|
# ex: docker run -it --rm cpuminer-opt:latest -a cryptonight -o cryptonight.eu.nicehash.com:3355 -u 1MiningDW2GKzf4VQfmp4q2XoUvR6iy6PD.worker1 -p x -t 3
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM ubuntu:12.10
|
FROM ubuntu:16.04
|
||||||
MAINTAINER Guillaume J. Charmes <guillaume@charmes.net>
|
RUN BUILD_DEPS="build-essential \
|
||||||
|
libssl-dev \
|
||||||
|
libgmp-dev \
|
||||||
|
libcurl4-openssl-dev \
|
||||||
|
libjansson-dev \
|
||||||
|
automake" && \
|
||||||
|
|
||||||
RUN apt-get update -qq
|
apt-get update && \
|
||||||
|
apt-get install -y ${BUILD_DEPS}
|
||||||
|
|
||||||
RUN apt-get install -qqy automake
|
COPY . /app/
|
||||||
RUN apt-get install -qqy libcurl4-openssl-dev
|
RUN cd /app/ && ./build.sh
|
||||||
RUN apt-get install -qqy git
|
|
||||||
RUN apt-get install -qqy make
|
|
||||||
|
|
||||||
RUN git clone https://github.com/pooler/cpuminer
|
ENTRYPOINT ["/app/cpuminer"]
|
||||||
|
CMD ["-h"]
|
||||||
RUN cd cpuminer && ./autogen.sh
|
|
||||||
RUN cd cpuminer && ./configure CFLAGS="-O3"
|
|
||||||
RUN cd cpuminer && make
|
|
||||||
|
|
||||||
WORKDIR /cpuminer
|
|
||||||
ENTRYPOINT ["./cpuminer"]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user