REDACTED-rig/Dockerfile
2017-10-14 23:34:04 +02:00

20 lines
591 B
Docker

FROM ubuntu:16.04
RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository ppa:jonathonf/gcc-7.1 -y
RUN apt-get update && apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev gcc-7 g++-7 -y
ENV HOME_DIR /root
ENV XMRIG_DIR $HOME_DIR/xmrig
ENV XMRIG_BUILD_DIR $XMRIG_DIR/build
WORKDIR $HOME_DIR
RUN git clone https://github.com/xmrig/xmrig.git
RUN mkdir $XMRIG_BUILD_DIR
RUN cd $XMRIG_BUILD_DIR && cmake $XMRIG_DIR -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7
RUN cd $XMRIG_BUILD_DIR && make
ENTRYPOINT $XMRIG_BUILD_DIR/xmrig