mirror of
https://gitee.com/kennylee/docker.git
synced 2024-12-02 03:48:15 +08:00
38 lines
793 B
Plaintext
Executable File
38 lines
793 B
Plaintext
Executable File
# Ubuntu
|
|
#
|
|
# Base Docker Image http://dockerfile.github.io/#/ubuntu
|
|
# Authoer: kennylee26
|
|
|
|
FROM ubuntu:trusty
|
|
|
|
MAINTAINER kennylee26 <kennylee26@gmail.com>
|
|
|
|
RUN sed -i 's/archive.ubuntu.com/mirrors.163.com/g' /etc/apt/sources.list
|
|
|
|
# Install.
|
|
RUN \
|
|
apt-get update && \
|
|
apt-get -y upgrade && \
|
|
apt-get install -y curl git unzip vim wget && \
|
|
apt-get install -y language-pack-zh-hans && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN locale
|
|
ENV LANG=zh_CN.UTF-8;\
|
|
LANGUAGE=zh_CN:zh:en_US:en;\
|
|
LC_ALL=zh_CN.UTF-8;\
|
|
TZ="Asia/Shanghai";\
|
|
TERM=xterm
|
|
|
|
RUN echo "Asia/Shanghai" > /etc/timezone && \
|
|
dpkg-reconfigure --frontend noninteractive tzdata
|
|
|
|
# Set environment variables.
|
|
ENV HOME /root
|
|
|
|
# Define working directory.
|
|
WORKDIR /root
|
|
|
|
# Define default command.
|
|
CMD ["bash"]
|