Skip to content

Commit 29cf73b

Browse files
Merge pull request #317 from tschm/patch-2
Update README.md
2 parents 8a3b519 + d949b72 commit 29cf73b

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,23 @@ Otherwise, clone/download the project and in the project directory run:
9191
python setup.py install
9292
```
9393

94-
Thanks to Thomas Schmelzer, PyPortfolioOpt now supports Docker (requires **make**, **docker**, **docker-compose**). Build your first container with `make build`; run tests with `make test`. For more information, please read [this guide](https://docker-curriculum.com/#introduction).
94+
PyPortfolioOpt supports Docker. Build your first container with `docker build -f docker/Dockerfile . -t pypfopt`. You can use the image to run tests or even launch a Jupyter server.
95+
96+
```bash
97+
# iPython interpreter:
98+
docker run -it pypfopt poetry run ipython
99+
100+
# Jupyter notebook server:
101+
docker run -it -p 8888:8888 pypfopt poetry run jupyter notebook --allow-root --no-browser --ip 0.0.0.0
102+
# click on http://127.0.0.1:8888/?token=xxx
103+
104+
# Pytest
105+
docker run -t pypfopt poetry run pytest
106+
107+
# Bash
108+
docker run -it pypfopt bash
109+
```
110+
For more information, please read [this guide](https://docker-curriculum.com/#introduction).
95111

96112
### For development
97113

0 commit comments

Comments
 (0)