update dev-base

This commit is contained in:
Newnius 2019-04-17 13:13:13 +08:00
parent ad5dce8f90
commit 8a8256b35c
2 changed files with 21 additions and 1 deletions

View File

@ -5,8 +5,13 @@ MAINTAINER Newnius <docker@newnius.com>
RUN yes | unminimize && \
apt update && \
apt install -y curl openssh-server vim openjdk-8-jre python3-pip git bash-completion && \
pip3 install numpy scipy pandas scikit-learn matplotlib
pip3 install numpy scipy pandas scikit-learn matplotlib sklearn && \
rm -rf /var/lib/apt/lists/*
RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
WORKDIR /root
ADD bootstrap.sh /etc/bootstrap.sh
CMD ["/etc/bootstrap.sh"]

15
dev-base/bootstrap.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
# reset root password
if [[ -z "${SSH_PASS}" ]]; then
export SSH_PASS=password
fi
echo "${SSH_PASS}" | passwd --stdin
# start sshd service
/etc/init.d/ssh start
# do nothing but wait
sleep infinity