From a6d5edd00416f87aa854e1413ddb749b029b0375 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Sat, 11 Dec 2021 18:16:02 +1300 Subject: [PATCH] Add Docker --- Dockerfile | 9 +++++++++ docker-compose.yml | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f6f2415 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM python:slim + +ENV TOKEN='' + +WORKDIR /notebooks +RUN useradd -d /notebooks python && chown -R python /notebooks && pip install jupyterlab + +USER python +CMD [ "jupyter", "lab", "--ip=0.0.0.0", "--NotebookApp.token=''", "--notebook-dir", "/notebooks", "picofumi.ipynb" ] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9055b19 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +version: '3.7' + +services: + app: + build: . + image: picofumi + ports: + - 8888:8888 + volumes: + - ./notebooks:/notebooks + environment: + - TOKEN=a