Add dockerfile
This commit is contained in:
parent
4138d4a178
commit
aebff274db
1 changed files with 20 additions and 0 deletions
20
Dockerfile
Normal file
20
Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
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
|
Loading…
Add table
Add a link
Reference in a new issue