FROM ubuntu:16.04
RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \
mkdir -p $HOME/.config/pip && echo '[global]\n\
index-url = https://mirrors.ustc.edu.cn/pypi/web/simple\n\
format = columns' > $HOME/.config/pip/pip.conf
FROM wenning/ubuntu:16.04
RUN apt-get update && apt-get install -y vim openssh-server curl && \
mkdir /root/.ssh && \
curl -o /root/.ssh/authorized_keys https://raw.githubusercontent.com/htwenning/myconfig/master/authorized_keys && \
echo 'AuthorizedKeysFile %h/.ssh/authorized_keys' >> /etc/ssh/sshd_config
ENTRYPOINT service ssh restart && bash
Content type
Image
Digest
Size
27.2 MB
Last updated
over 4 years ago
docker pull wenning/ubuntu:20.04