Jupyterlab

FROM continuumio/anaconda3
RUN echo 'root:jupyter' | chpasswd
# Install Jupyter
WORKDIR /jupyter
RUN conda install jupyter jupyterlab -y --quiet
ENV HOME="/root"
ENV PATH="${HOME}/.local/bin:${PATH}"
# Setting config file
# RUN jupyter lab --generate-config
# RUN echo 'c.NotebookApp.password = u"argon2:$argon2id$v=19$m=10240,t=10,p=8$RZcwK0nNL4dyJDkEQ8gG9A$COV2ju8zmfuf/FX/dQ0JvA"' >> /root/.jupyter/jupyter_lab_config.py
# Run the server
EXPOSE 8888
CMD jupyter lab --no-browser --port=8888 --ip=0.0.0.0 --allow-root

Pure

FROM continuumio/anaconda3

# Install SSH-Server
RUN apt-get update

RUN apt update && apt install -y openssh-server git zsh curl vim
RUN mkdir /var/run/sshd
RUN echo 'root:jupyter' | chpasswd
RUN sed -ri 's/^#?PermitRootLogin\\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
RUN sed -ri 's/#Port 22/Port 20062/g' /etc/ssh/sshd_config
RUN sed -ri 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config
RUN mkdir /root/.ssh

RUN sh -c "$(curl -fsSL <https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh>)"

RUN git clone <https://github.com/zsh-users/zsh-autosuggestions> ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
RUN git clone <https://github.com/zsh-users/zsh-syntax-highlighting> ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
RUN sed -i "s/^plugins=.*/# &/" ~/.zshrc && sed -i '/^# plugins=.*/ a plugins=(git zsh-autosuggestions zsh-syntax-highlighting)' ~/.zshrc

RUN git clone --depth=1 <https://github.com/romkatv/powerlevel10k.git> ~/.oh-my-zsh/custom/themes/powerlevel10k
RUN sed -i "s/^ZSH_THEME=.*/# &/" ~/.zshrc && sed -i '/^# ZSH_THEME=.*/ a ZSH_THEME=\\"powerlevel10k\\/powerlevel10k\\"' ~/.zshrc

RUN chsh -s $(which zsh)

EXPOSE 20062
CMD    ["/usr/sbin/sshd", "-D"]