Sign inSign up

yjiang/base

By yjiang

•Updated almost 8 years ago

自用

Image
0

885

yjiang/base repository overview

⁠Dockerfile

FROM alpine

RUN sed -i 's/http://dl-cdn.alpinelinux.org/https://mirror.tuna.tsinghua.edu.cn/g⁠' /etc/apk/repositories RUN apk update && apk add vim bash git openssh #RUN rm -rf /var/cache/apk/* RUN echo root:123456 | chpasswd RUN ssh-keygen -A RUN cd ~ && git clone -b mini https://github.com/582033/vim.git⁠ .vim && bash ~/.vim/install.sh && ln -sf ~/.vim/bashrc ~/.bashrc

EXPOSE 222 CMD ["sshd", "-D"]

⁠RUN container:

docker run -it -p 222:22 --name='yjiang' yjiang/base bash

⁠Default password

123456

Tag summary

Content type

Image

Digest

Size

21.7 MB

Last updated

almost 8 years ago

docker pull yjiang/base