This docker image includes:
python
version3.8.0
plotly
matplotlib
You will need to list all your python dependencies in requirements.txt
.
To list all python modules via pip
:
pip freeze > requirements.txt
Or with conda
:
conda list -e > requirements.txt
Create a Dockerfile
in your project root directory with following structure:
FROM mitinarseny/jupetri
COPY requirements.txt .
RUN pip install -r requirements.txt
Then, in your project root directory create docker-compose.yaml
with following structure:
version: '3.7'
services:
jupyter:
build: .
volumes:
- ./:/data
ports:
- "8888:8888"
To run your Jupyter server simply run:
docker-compose up --build