Skip to content

Instantly share code, notes, and snippets.

@devymex
Last active May 31, 2021 06:23
Show Gist options
  • Save devymex/11eb3b04da8bcf5dd8d08859c17dbb35 to your computer and use it in GitHub Desktop.
Save devymex/11eb3b04da8bcf5dd8d08859c17dbb35 to your computer and use it in GitHub Desktop.
my dockerfile: nvidia/cuda:11.3.0-cudnn8-devel-ubuntu18.04
FROM nvidia/cuda:11.3.0-cudnn8-devel-ubuntu18.04
RUN mkdir -p /home/root
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils dialog
RUN apt install -y bash-completion locate vim tmux unzip htop
RUN apt install -y openssh-server # net-tools iputils-ping curl
RUN apt install -y build-essential pkg-config gdb git
RUN apt install -y libssl-dev libgoogle-glog-dev libgflags-dev
RUN touch /bin/init
RUN echo "#!/bin/bash" >> /bin/init
RUN echo "service ssh start" >> /bin/init
RUN echo "while true; do sleep 1; done;" >> /bin/init
RUN chmod +x /bin/init
RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
RUN echo "root:root" | chpasswd
RUN updatedb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment