Allows xmrblocks to be run in a docker container, you just need to mount the blockchain folder to the appropriate location. Takes just over an hour to build from scratch.
# add --no-cache get latest changes from https://github.com/monero-project/monero
docker build --no-cache -t xmrblocks .
docker run --net=host -v xmrdata:/home/monero/.bitmonero xmrblocks
Using multistage docker builds, it's possible to copy just the xmrblocks binary and its dynamic libraries so the resulting image is under 200MB:
❯ sudo docker images
[sudo] password for victor:
REPOSITORY TAG IMAGE ID CREATED SIZE
xmrblocks latest 9e98882d4110 17 minutes ago 179MB
Allows xmrblocks to be run in a docker container, you just need to mount the blockchain folder to the appropriate location. Takes just over an hour to build from scratch.
Using multistage docker builds, it's possible to copy just the
xmrblocks
binary and its dynamic libraries so the resulting image is under 200MB: