From 6b56a859d6ca78389ef4f46c2dcf74cf6fa136f7 Mon Sep 17 00:00:00 2001 From: mingzailao Date: Mon, 4 Dec 2023 05:14:35 -0500 Subject: [PATCH] no message --- .gitignore | 1 + Dockerfile | 32 +++++++++++++------------------- 2 files changed, 14 insertions(+), 19 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9b89f28 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +conda/ diff --git a/Dockerfile b/Dockerfile index abf4900..1a99f49 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,26 +8,10 @@ RUN echo "LANG=en_US.UTF-8" > /etc/locale.conf # fix (tzdata) ARG DEBIAN_FRONTEND=noninteractive - -RUN apt-get update && apt-get install -y software-properties-common gcc && \ - add-apt-repository -y ppa:deadsnakes/ppa - -RUN apt-get update && apt-get install -y python3.7 python3-distutils python3-pip python3-apt +RUN apt-get update +RUN apt-get install -y locales git vim nano zsh wget openssh-server && rm -rf /var/lib/apt/lists/* - -RUN apt-get install -y locales git vim nano - - - - -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 @@ -37,5 +21,15 @@ ENV NOTVISIBLE "in users profile" RUN echo "export VISIBLE=now" >> /etc/profile EXPOSE 22 +RUN usermod -s /bin/zsh root + +ENTRYPOINT ["/bin/zsh"] + +COPY ./conda/Miniconda3-latest-Linux-x86_64.sh /opt/Miniconda3-latest-Linux-x86_64.sh + +RUN bash /opt/Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda +RUN rm -f /opt/Miniconda3-latest-Linux-x86_64.sh +ENV PATH /opt/conda/bin:$PATH + + -ENTRYPOINT ["/bin/bash"]