mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-29 10:29:07 +08:00
更新debian:buster-slim
This commit is contained in:
parent
7d4f242105
commit
ac430ecc84
36
debian/buster/Dockerfile-slim
vendored
Executable file
36
debian/buster/Dockerfile-slim
vendored
Executable file
@ -0,0 +1,36 @@
|
||||
FROM debian:buster-slim
|
||||
|
||||
MAINTAINER kennylee <kennylee26@gmail.com>
|
||||
|
||||
RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak
|
||||
RUN sed -i 's#http://deb.debian.org#http://mirrors.163.com#g' /etc/apt/sources.list && \
|
||||
sed -i 's#http://security.debian.org#http://mirrors.163.com#g' /etc/apt/sources.list
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y curl git unzip vim wget && \
|
||||
apt-get install -y locales kde-l10n-zhcn && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN sed -i 's/# zh_CN.UTF-8 UTF-8/zh_CN.UTF-8 UTF-8/g' /etc/locale.gen
|
||||
|
||||
RUN locale && locale-gen "zh_CN.UTF-8"
|
||||
|
||||
ENV HOME /root
|
||||
# Set environment variables.
|
||||
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
|
||||
|
||||
RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \
|
||||
echo $TZ > /etc/timezone && \
|
||||
dpkg-reconfigure --frontend noninteractive tzdata && \
|
||||
dpkg-reconfigure --frontend noninteractive locales
|
||||
|
||||
# Define working directory.
|
||||
WORKDIR $HOME
|
||||
|
||||
CMD ["/bin/bash"]
|
Loading…
Reference in New Issue
Block a user