<reponame>aparra001/nv-docker
ARG runtime="nvidia"
FROM nvidia/cuda:9.2-runtime-ubuntu18.04

LABEL "maintainer"="<NAME> <<EMAIL>>"

# NVidia required
ENV NVIDIA_VISIBLE_DEVICES=0

ENV EMREL="https://github.com/ethereum-mining/ethminer/releases/download/v0.17.1/ethminer-0.17.1-linux-x86_64.tar.gz"

RUN apt-get update && apt-get install -y --no-install-recommends \
    wget \
 && rm -rf /var/lib/apt/lists/* \
 && mkdir /ethminer \
 && wget --no-check-certificate $EMREL \
 && tar -xvf ./*.tar.gz  -C /ethminer --strip-components 1 \
 && rm *.tar.gz

WORKDIR /ethminer

EXPOSE 3333/tcp

ENTRYPOINT [ "/ethminer/ethminer" ]
CMD [ "-R", "-U", "-P", "stratums://0xBAC4787497Ac1fcf37510EB2362F91FDc87f3519.aws@us1.ethermine.org:4444" ]
