Compare commits

..

3 Commits

Author SHA1 Message Date
mingzailao 7a98639c44 no mesage 2024-03-29 14:41:19 +08:00
mingzailao 6b56a859d6 no message 2023-12-04 05:14:35 -05:00
mingzailao 0762dbc7ce first deploy 2023-12-04 01:49:15 -05:00
2 changed files with 14 additions and 19 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
conda/

View File

@ -8,27 +8,10 @@ RUN echo "LANG=en_US.UTF-8" > /etc/locale.conf
# fix (tzdata)
ARG DEBIAN_FRONTEND=noninteractive
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 -y update && \
apt-get -y upgrade && \
apt-get install -y python3-pip python3-dev
RUN apt-get install -y locales git vim nano
RUN apt-get install -y zsh && apt-get install -y curl
RUN PATH="$PATH:/usr/bin/zsh"
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 echo 'root:qwerty' | chpasswd
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
@ -38,6 +21,17 @@ ENV NOTVISIBLE "in users profile"
RUN echo "export VISIBLE=now" >> /etc/profile
EXPOSE 22
RUN service ssh start
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