Skip to content

Commit

Permalink
Make local Jupyter a bit more development-friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
AartGoossens committed Apr 21, 2021
1 parent a817f19 commit 42509ac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docker/Dockerfile.jupyter
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
FROM python
ENV PYTHONPATH "${PYTHONPATH}:/src"

RUN pip install jupyter

RUN mkdir /build
WORKDIR /build
COPY pyproject.toml poetry.lock README.md ./
RUN mkdir /sweat
COPY sweat ./sweat

RUN pip install .

RUN mkdir /src/
WORKDIR /src/
WORKDIR /src/docs/docs

CMD pip install . && cd docs/docs/ && jupyter notebook --ip=0.0.0.0 --port=8888 --allow-root --NotebookApp.token='' --NotebookApp.password=''
CMD jupyter notebook --ip=0.0.0.0 --port=8888 --allow-root --NotebookApp.token='' --NotebookApp.password=''
2 changes: 2 additions & 0 deletions docker/docker-compose.docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ services:
build:
context: ..
dockerfile: docker/Dockerfile.jupyter
environment:
- PYTHONPATH=/src:${PYTHONPATH}
ports:
- "8889:8888"
volumes:
Expand Down

0 comments on commit 42509ac

Please sign in to comment.