docker/ubuntu/bionic/Dockerfile

41 lines
951 B
Docker
Raw Normal View History

2017-11-22 15:09:31 +08:00
# Ubuntu
#
# Base Docker Image http://dockerfile.github.io/#/ubuntu
# Authoer: kennylee26
FROM ubuntu:bionic
MAINTAINER kennylee26 <kennylee26@gmail.com>
RUN sed -i 's/archive.ubuntu.com/mirrors.163.com/g' /etc/apt/sources.list
# Set environment variables.
ENV HOME /root
ENV LANG="zh_CN.UTF-8" \
LANGUAGE="zh_CN:zh:en_US:en" \
LC_ALL="zh_CN.UTF-8" \
TZ="Asia/Shanghai" \
DEBIAN_FRONTEND="noninteractive" \
TERM="xterm"
2017-11-22 15:09:31 +08:00
# Install.
RUN \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y apt-utils curl git unzip vim wget iputils-ping && \
2017-11-22 15:09:31 +08:00
apt-get install -y language-pack-zh-hans && \
apt-get install -y dialog tzdata && \
2017-11-22 15:09:31 +08:00
rm -rf /var/lib/apt/lists/*
RUN locale
RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone && \
dpkg-reconfigure --frontend noninteractive tzdata
# Define working directory.
WORKDIR $HOME
# Define default command.
CMD ["bash"]