Skip to content

Commit

Permalink
add LIB_INSTALL_TYPE env file to dc (fastai#3577)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbird15 authored Feb 11, 2022
1 parent 0823269 commit 681ae88
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ services:
tty: true
volumes:
- .:/data/
environment:
- LIB_INSTALL_TYPE=. #optionally change this locally to .[dev] to install dev packages as well

notebook:
<<: *fastai
command: bash -c "pip install -e . && jupyter notebook --allow-root --no-browser --ip=0.0.0.0 --port=8080 --NotebookApp.token='' --NotebookApp.password=''"
command: bash -c "pip install -e $$LIB_INSTALL_TYPE && jupyter notebook --allow-root --no-browser --ip=0.0.0.0 --port=8080 --NotebookApp.token='' --NotebookApp.password=''"
ports:
- "8080:8080"

Expand All @@ -30,7 +32,7 @@ services:
- "4000:4000"
command: >
bash -c "cp -r docs_src docs
&& pip install .
&& pip install $$LIB_INSTALL_TYPE
&& nbdev_build_docs && cd docs
&& bundle i
&& bundle exec jekyll serve --host 0.0.0.0"

0 comments on commit 681ae88

Please sign in to comment.