|
FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04 |
|
|
|
|
|
RUN apt-get update \ |
|
&& apt-get install -y build-essential \ |
|
&& apt-get install -y wget git curl vim nano htop byobu zip unzip \ |
|
&& apt-get clean \ |
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
RUN curl -fsSL https://get.docker.com | sh |
|
|
|
|
|
ENV CONDA_DIR=/opt/conda |
|
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ |
|
/bin/bash ~/miniconda.sh -b -p /opt/conda |
|
|
|
|
|
ENV PATH=$CONDA_DIR/bin:$PATH |
|
|
|
|
|
RUN pip install jupyter ipykernel nvitop |
|
RUN pip install conda-pack |
|
|
|
|
|
RUN apt-get update && apt-get install -y zsh |
|
RUN chsh -s /usr/bin/zsh |
|
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh && y)" |
|
|
|
COPY ./.zshrc /root/.zshrc |
|
SHELL [ "/bin/zsh" , "-c" ] |
|
ENV ZSH_CUSTOM=/root/.oh-my-zsh/custom |
|
RUN git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions |
|
RUN git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting |
|
|
|
|
|
RUN apt-get update && apt-get install -y openssh-server |
|
RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config |
|
RUN useradd -m -s /bin/bash developer |
|
RUN echo 'developer:devserver123' | chpasswd |
|
RUN service ssh start |
|
|
|
|
|
RUN apt install -y net-tools telnet traceroute |
|
|
|
EXPOSE 22 |
|
|
|
WORKDIR /workspace |
|
|
|
|
|
CMD [ "jupyter-notebook", "--no-browser", "--ip=0.0.0.0", "--port", "8080", "--allow-root", "--NotebookApp.token=devserver123" , "--notebook-dir=/workspace", "--NotebookApp.terminado_settings={'shell_command': ['/usr/bin/zsh']}"] |
|
|