From a80bc56f277d20998afc5a4bfead86273cb2a03e Mon Sep 17 00:00:00 2001 From: tobwiens Date: Sat, 14 Oct 2017 23:39:51 +0200 Subject: [PATCH] Update Dockerfile with comments - Add comments to Dockerfile - Put comments on top of Dockerfile --- Dockerfile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index aaad6de9..376003b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,21 @@ +# +# 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 -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