no message
parent
0762dbc7ce
commit
6b56a859d6
|
@ -0,0 +1 @@
|
|||
conda/
|
32
Dockerfile
32
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"]
|
||||
|
|
Loading…
Reference in New Issue