10.2-cudnn8-devel-ubuntu18.04
mingzailao 2023-12-04 20:24:38 -05:00
parent c3d74aeadd
commit 3aea0413b0
1 changed files with 9 additions and 17 deletions

View File

@ -1,4 +1,4 @@
FROM nvidia/cuda:10.2-cudnn8-devel-ubuntu18.04 FROM nvcr.io/nvidia/cuda:10.2-cudnn8-devel-ubuntu18.04
# encoding # encoding
RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment
@ -12,27 +12,17 @@ ARG DEBIAN_FRONTEND=noninteractive
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
RUN apt-get -y update && \
apt-get -y upgrade && \
apt-get install -y python3.8 python3-pip
ENV PYTHON_VERSION=3.8
RUN apt-get install -y locales git vim nano ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y zsh && apt-get install -y curl RUN apt-get install -y locales git vim nano zsh wget openssh-server && rm -rf /var/lib/apt/lists/*
ENV PATH="$PATH:/usr/bin/zsh"
ENV PATH=/usr/bin:$PATH
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
RUN echo 'alias python="python3"' >> ~/.bashrc
RUN echo 'alias python="python3"' >> ~/.zshrc
RUN echo 'alias pip="pip3"' >> ~/.bashrc
RUN echo 'alias pip="pip3"' >> ~/.zshrc
RUN apt-get install -y openssh-server
RUN mkdir /var/run/sshd RUN mkdir /var/run/sshd
RUN echo 'root:qwerty' | chpasswd RUN echo 'root:qwerty' | chpasswd
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
@ -44,4 +34,6 @@ EXPOSE 22
RUN usermod -s /bin/zsh root RUN usermod -s /bin/zsh root
ENTRYPOINT service ssh start && bash ENTRYPOINT service ssh start && zsh