Update Dockerfile with comments

- Add comments to Dockerfile
- Put comments on top of Dockerfile
This commit is contained in:
tobwiens 2017-10-14 23:39:51 +02:00 committed by GitHub
parent aebff274db
commit a80bc56f27

View file

@ -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 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 apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository ppa:jonathonf/gcc-7.1 -y 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 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 WORKDIR $HOME_DIR
RUN git clone https://github.com/xmrig/xmrig.git RUN git clone https://github.com/xmrig/xmrig.git