Skip to content

Instantly share code, notes, and snippets.

@fenprace
Last active June 14, 2021 06:21
Show Gist options
  • Save fenprace/83263cc62d11588549b2b7437ccfed02 to your computer and use it in GitHub Desktop.
Save fenprace/83263cc62d11588549b2b7437ccfed02 to your computer and use it in GitHub Desktop.
Minimal Jupyter-lab image based on Debian Stable

READEME

Usage

To build the image, run:

docker build -t jupyter-lab:stable .

To start a container:

docker run -dit [--name jupyter-lab] -p 8888:8888 [-v <SOURCE>:<TARGET>] jupyter-lab:stable 

To inspect running instances and find out the token, run:

docker exec jupyter-lab jupyter server list   
FROM debian:stable
EXPOSE 8888
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y build-essential libssl-dev libffi-dev python3 python3-pip python3-dev
RUN pip3 install --no-input jupyterlab
CMD jupyter-lab --allow-root --ip 0.0.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment