From 7991cad9af503fa71ad4b911e16bb767ad2256b6 Mon Sep 17 00:00:00 2001 From: miklobit Date: Mon, 10 Oct 2022 15:29:12 +0200 Subject: [PATCH] docker config --- Dockerfile | 11 +++++++++++ requirements.txt | 3 +-- run_voila | 5 +++++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 Dockerfile create mode 100755 run_voila diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..017da10 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM jupyter/base-notebook + +COPY requirements.txt . + +RUN python3 -m pip install --user --no-cache-dir -r requirements.txt +COPY notebooks . +COPY run_voila . + +EXPOSE 8866 +#CMD ["jupyter-lab","--ip=0.0.0.0","--no-browser","--allow-root"] +CMD ["./run_voila"] diff --git a/requirements.txt b/requirements.txt index 6b0dc0b..a3ed803 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ -jupyterlab pythreejs pandas voila ipywidgets -termcolor \ No newline at end of file +termcolor diff --git a/run_voila b/run_voila new file mode 100755 index 0000000..c262741 --- /dev/null +++ b/run_voila @@ -0,0 +1,5 @@ +python3 -m voila \ + --Voila.ip='0.0.0.0' \ + --enable_nbextensions=True \ + --autoreload=True \ + --no-browser \