⬆️ Upgrade Jupyter to use Lab, update util/env var for local development

This commit is contained in:
Sebastián Ramírez
2019-04-24 22:45:20 +04:00
parent 42ee0fe0ba
commit 47e0fe56e3
4 changed files with 9 additions and 9 deletions

View File

@@ -4,9 +4,9 @@ RUN pip install requests pytest tenacity passlib[bcrypt] "fastapi>=0.16.0" psyco
# For development, Jupyter remote kernel, Hydrogen
# Using inside the container:
# jupyter notebook --ip=0.0.0.0 --allow-root
# jupyter lab --ip=0.0.0.0 --allow-root --NotebookApp.custom_display_url=http://127.0.0.1:8888
ARG env=prod
RUN bash -c "if [ $env == 'dev' ] ; then pip install jupyter ; fi"
RUN bash -c "if [ $env == 'dev' ] ; then pip install jupyterlab ; fi"
EXPOSE 8888
COPY ./app /app