本镜像指在构建一个易用的ubuntu:
同时,完成了所有配置文件的修改,是一个开箱即用的ubuntu镜像。
该镜像基于如下Dockerfile生成:
FROM ubuntu:20.04
LABEL All_rights_reserved="[email protected]"
RUN set -x; buildDeps='sudo vim zsh git autojump curl tzdata' \
&& sed -i 's/ports.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list \
&& export DEBIAN_FRONTEND=noninteractive \
&& export SUDO_FORCE_REMOVE=yes \
&& apt-get update -y \
&& apt-get upgrade -y \
&& apt install -y software-properties-common \
&& apt-get install -y $buildDeps \
&& ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& yes|sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" \
&& git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting \
&& git clone git://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions \
&& git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k \
&& cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc \
&& sed -i '/ZSH_THEME="/ c ZSH_THEME="powerlevel10k/powerlevel10k"' ~/.zshrc \
&& sed -i '/plugins=(git)/ c plugins=(git autojump zsh-syntax-highlighting zsh-autosuggestions sudo extract)' ~/.zshrc \
&& sed -i '$a bindkey '"'"'`'"'"' autosuggest-accept' ~/.zshrc \
&& git clone https://github.com/chxuan/vimplus.git ~/.vimplus \
&& cd ~/.vimplus \
&& yes|./install.sh \
&& sudo apt autoremove -y \
&& sudo apt clean -y \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["/bin/zsh"]
Content type
Image
Digest
Size
357.1 MB
Last updated
about 5 years ago
docker pull happytsing/ubuntu