update
This commit is contained in:
23
ubuntu/Dockerfile
Normal file
23
ubuntu/Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM ubuntu:20.04
|
||||
MAINTAINER Colben colbenlee@gmail.com
|
||||
ADD --chown=root:root /ADD/localtime /etc/localtime
|
||||
ENV LANG=en_US.UTF-8
|
||||
ENV LANGUAGE=en_US
|
||||
RUN echo "\n\
|
||||
export HISTCONTROL=ignoredups:ignorespace\n\
|
||||
export HISTSIZE=10000\n\
|
||||
export HISTFILESIZE=20000\n\
|
||||
export HISTTIMEFORMAT='[%d %R] '\n\
|
||||
export PS1='\[\e[33;1;1m\][\[\e[0m\]\[\e[35;1m\]\u\[\e[0m\]\[\e[33;1;1m\]@\[\e[0m\]\[\e[31;1;1m\]docker\[\e[0m\]\[\e[32;1;1m\](\h)\[\e[0m\]\[\e[33;1;1m\]:\[\e[0m\]\[\e[32m\]\w\[\e[0m\]\[\e[33;1;1m\]]\[\e[0m\]\[\e[36m\]\$\[\e[0m\] '\n\
|
||||
export PS2='\[\e[36m\]>\[\e[0m\] '\n\
|
||||
alias ls='ls --color=auto'\n\
|
||||
alias grep='grep --color=auto'\n\
|
||||
" > /etc/bash.bashrc \
|
||||
&& ln -sf /bin/bash /bin/sh \
|
||||
&& apt update -y \
|
||||
&& apt install -y ca-certificates \
|
||||
&& sed -i '/^deb /s,http://ports.ubuntu.com,https://mirrors.tuna.tsinghua.edu.cn,' /etc/apt/sources.list \
|
||||
&& apt update -y \
|
||||
&& apt install -y vim-tiny less curl iproute2 \
|
||||
&& rm -rf /var/lib/apt/lists/* /var/lib/dpkg/info/* /var/cache/apt/archives /root/.bashrc /root/.profile
|
||||
|
Reference in New Issue
Block a user