Skip to content

Commit

Permalink
Update Dockerfile to same with pyvista-examples (#154)
Browse files Browse the repository at this point in the history
* Update Dockerfile to same with pyvista-examples

* Create requirements_binder.txt

* Update Dockerfile

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Create start

* Update conf.py

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
tkoyama010 and pre-commit-ci[bot] authored Aug 19, 2023
1 parent 8910827 commit 2c66af7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 17 deletions.
21 changes: 5 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
FROM ghcr.io/pyvista/pyvista:v0.41.1
MAINTAINER "PyVista Developers"
SHELL ["/bin/bash", "-c"]
ARG BASE_IMAGE_TAG=latest
FROM ghcr.io/pyvista/pyvista:$BASE_IMAGE_TAG


COPY . $HOME

RUN pip install pyvista
RUN pip install pyinstaller==5.1
RUN pip install sphinx
RUN pip install jupyterlab
RUN pip install tqdm
RUN pip install imageio>=2.5.0
RUN pip install imageio-ffmpeg
RUN pip install matplotlib
RUN pip install cmocean
RUN pip install trame
COPY . ${HOME}
WORKDIR ${HOME}
RUN pip install -r requirements_binder.txt
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def __repr__(self):
'repo': "pyvista-tutorial",
'branch': "gh-pages",
'binderhub_url': "https://mybinder.org",
'dependencies': "../../Dockerfile",
'dependencies': ["../../Dockerfile", "../../start"],
'use_jupyter_lab': True,
},
'reset_modules': (ResetPyVista(),),
Expand Down
5 changes: 5 additions & 0 deletions requirements_binder.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
hypothesis
lxml
pyct
rtree
tqdm
3 changes: 3 additions & 0 deletions start
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
export PYVISTA_TRAME_SERVER_PROXY_PREFIX="$JUPYTERHUB_SERVICE_PREFIX/proxy/"
exec "$@"

0 comments on commit 2c66af7

Please sign in to comment.