Skip to content

Instantly share code, notes, and snippets.

@afitterling
Last active November 25, 2021 21:03
Show Gist options
  • Save afitterling/dd8e5eb23bfc7ad333f608085e02e041 to your computer and use it in GitHub Desktop.
Save afitterling/dd8e5eb23bfc7ad333f608085e02e041 to your computer and use it in GitHub Desktop.
Dockerfile jupyter
FROM python:buster
RUN apt update
RUN apt install -y vim
RUN /usr/local/bin/python -m pip install --upgrade pip
RUN pip3 install jupyter
RUN \curl -sSL https://get.rvm.io | bash
RUN echo "PATH=$PATH:/usr/local/rvm/bin" >> /root/.bashrc
RUN . /root/.bashrc && rvm install ruby
RUN bash --login -c "rvm use ruby && gem install iruby"
RUN bash --login -c "rvm use ruby && iruby register --force"
RUN bash --login -c "rvm use ruby && gem install executable-hooks"
WORKDIR /work
CMD ["bash", "--login", "-c", "rvm use ruby && jupyter-notebook --allow-root --port 8889 --ip 0.0.0.0"]
#RUN with
#docker build -t test .
#docker run -it --rm -p 8889:8889 -v$(pwd):/work test
#docker run -it --rm -p 8889:8889 -v$(pwd):/work helloguesthq/jupyter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment