Add Docker
This commit is contained in:
9
Dockerfile
Normal file
9
Dockerfile
Normal 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
12
docker-compose.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
version: '3.7'
|
||||||
|
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
build: .
|
||||||
|
image: picofumi
|
||||||
|
ports:
|
||||||
|
- 8888:8888
|
||||||
|
volumes:
|
||||||
|
- ./notebooks:/notebooks
|
||||||
|
environment:
|
||||||
|
- TOKEN=a
|
Reference in New Issue
Block a user