first add

11.7.0-cudnn8-devel-ubuntu18.04
mingzailao 2023-12-05 06:41:40 -05:00
parent d099657b4d
commit 76d3a21258
2 changed files with 7 additions and 24 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
conda/

View File

@ -1,36 +1,17 @@
FROM nvidia/cuda:11.7.0-cudnn8-devel-ubuntu18.04
FROM nvcr.io/nvidia/cuda:11.7.0-cudnn8-devel-ubuntu18.04
# encoding
RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
RUN echo "LANG=en_US.UTF-8" > /etc/locale.conf
# fix (tzdata)
ARG DEBIAN_FRONTEND=noninteractive
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
RUN apt-get install -y zsh && apt-get install -y curl
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 apt-get update
RUN apt-get install -y locales git vim nano zsh wget openssh-server && rm -rf /var/lib/apt/lists/*
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 echo 'root:qwerty' | chpasswd
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
@ -40,6 +21,7 @@ ENV NOTVISIBLE "in users profile"
RUN echo "export VISIBLE=now" >> /etc/profile
EXPOSE 22
RUN usermod -s /bin/zsh root
ENTRYPOINT ["/bin/zsh"]
ENTRYPOINT service ssh start && zsh