#
# Dockerfile for nolambocoin-miner
# usage: docker run creack/cpuminer --url xxxx --user xxxx --pass xxxx
# ex: docker run creack/cpuminer --url stratum+tcp://ltc.pool.com:80 --user creack.worker1 --pass abcdef
#
#

FROM            ubuntu:16.04
MAINTAINER      kanon <60179867+decryp2kanon@users.noreply.github.com>

RUN             apt-get update -qq && \
                apt-get install -qqy automake libcurl4-openssl-dev git make gcc

RUN             git clone https://github.com/decryp2kanon/nolambocoin-miner

RUN             cd nolambocoin-miner && \
                ./autogen.sh && \
                ./configure CFLAGS='-O2 -fomit-frame-pointer' && \
                make

WORKDIR         /nolambocoin-miner
ENTRYPOINT      ["./nolambocoin-miner"]
