This is a Dockerfile for building and running Docker container with a latest version of Tox (toxcore) DHT bootstrap daemon.
Image is based on latest Alpine Docker image. Total size should be around ~8MiB, but it could be minimized even more.
- image runs only tox-bootstrapd daemon by default
- ports exposed: 33445/tcp, 33445/udp, 8080/tcp, 8080/udp
- LAN discovery is disabled
- bootstrap nodes loaded by default: bootstrapd-conf-ipv64.txt, change to more appropriate list of nodes depending on your available networking connectivity in ADD section
Launch image and check logs:
docker pull romang/toxcore-docker-alpine
docker run -d --name toxcore_bootstrapd romang/toxcore-docker-alpine
docker logs toxcore_bootstrapd
Launch image and drop to Bash shell:
docker run -t -i --name toxcore_bootstrapd /bin/sh
Alternatively you may change CMD section in Dockerfile.
Note that you most probably would need to open firewall ports for the container to work properly.