Add Docker
This commit is contained in:
parent
744d3e8a99
commit
a6d5edd004
|
@ -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" ]
|
|
@ -0,0 +1,12 @@
|
||||||
|
version: '3.7'
|
||||||
|
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
build: .
|
||||||
|
image: picofumi
|
||||||
|
ports:
|
||||||
|
- 8888:8888
|
||||||
|
volumes:
|
||||||
|
- ./notebooks:/notebooks
|
||||||
|
environment:
|
||||||
|
- TOKEN=a
|
Loading…
Reference in New Issue