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