Update README.md

This commit is contained in:
hannah98 2017-10-03 13:01:36 -05:00 committed by GitHub
parent c8957b0c59
commit 6ce594bf4b
1 changed files with 23 additions and 0 deletions

View File

@ -27,6 +27,29 @@ $ pipenv install
* `$ pipenv run python blockchain.py`
* `$ pipenv run python blockchain.py -p 5001`
* `$ pipenv run python blockchain.py --port 5002`
## Docker
1. Clone this repository
2. Build the docker container
```
$ docker build -t blockchain .
```
3. Run the container
```
$ docker run --rm -p 80:5000 blockchain
```
4. To add more instances, vary the public port number before the colon:
```
$ docker run --rm -p 81:5000 blockchain
$ docker run --rm -p 82:5000 blockchain
$ docker run --rm -p 83:5000 blockchain
```
## Contributing