By default this Dockerfile is suitable for using dockerhub auto build
feature to build new :latest when ever there's a new push to the
github master branch allowing for simple "official" image
distribution.
Adding build args allow specifying alternate repository (default:
https://github.com/xmrig/xmrig.git) or build reference (default:
master) example:
docker build --build-arg repo=https://github.com/<username>/xmrig.git \
--build-arg ref=dev --tag xmrig:dev .
A multi stage build is used to keep run time image small.