Add Docker

This commit is contained in:
Jimmy 2021-12-11 18:16:02 +13:00
parent 744d3e8a99
commit a6d5edd004
2 changed files with 21 additions and 0 deletions

9
Dockerfile Normal file
View File

@ -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" ]

12
docker-compose.yml Normal file
View File

@ -0,0 +1,12 @@
version: '3.7'
services:
app:
build: .
image: picofumi
ports:
- 8888:8888
volumes:
- ./notebooks:/notebooks
environment:
- TOKEN=a