mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-06-06 08:11:54 +00:00
update dev-base
This commit is contained in:
parent
ad5dce8f90
commit
8a8256b35c
@ -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
15
dev-base/bootstrap.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user