Dockerfile: add option to set build parallelism

This commit is contained in:
MoroccanMalinois 2017-12-11 23:33:08 +00:00
parent f51bac990e
commit 37f9c6e651
No known key found for this signature in database
GPG key ID: A63BDCF76B8B38BD
2 changed files with 7 additions and 1 deletions

View file

@ -140,7 +140,11 @@ Installing a snap is very quick. Snaps are secure. They are isolated with all of
* Docker
# Build using all available cores
docker build -t monero .
# or build using a specific number of cores (reduce RAM requirement)
docker build --build-arg NPROC=1 -t monero .
# either run in foreground
docker run -it -v /monero/chain:/root/.bitmonero -v /monero/wallet:/wallet -p 18080:18080 monero