Merge 82a097661f
into efa21b2531
This commit is contained in:
commit
60cca6336e
1 changed files with 26 additions and 0 deletions
26
Dockerfile
Normal file
26
Dockerfile
Normal file
|
@ -0,0 +1,26 @@
|
|||
#
|
||||
# Dockerfile for xmrig
|
||||
# usage: docker build -t xmrig:latest.
|
||||
# run: docker run --name xmrig --restart unless-stopped -d xmrig:latest [XMRIG EXECUTABLE ARGUMENTS]
|
||||
#
|
||||
|
||||
FROM ubuntu:16.04
|
||||
|
||||
ENV HOME_DIR /root
|
||||
ENV XMRIG_DIR $HOME_DIR/xmrig
|
||||
ENV XMRIG_BUILD_DIR $XMRIG_DIR/build
|
||||
|
||||
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
|
||||
|
||||
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 ["/root/xmrig/build/xmrig"]
|
Loading…
Add table
Add a link
Reference in a new issue