23 lines
862 B
Docker
23 lines
862 B
Docker
FROM ubuntu
|
||
# apt安装时,防止卡死在交互界面
|
||
ENV DEBIAN_FRONTEND=noninteractive
|
||
ENV LANG=zh_CN.UTF-8
|
||
ENV LC_ALL=zh_CN.UTF-8
|
||
# 基础软件安装
|
||
RUN sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list \
|
||
&& apt-get -y update && apt-get -y upgrade \
|
||
&& apt-get install -y python3.10-venv libssl-dev sudo vim python3-pip ssh wget unzip p7zip* language-pack-zh-hans language-selector-common locales locales-all \
|
||
# 设置中文环境
|
||
&& apt install -y $(check-language-support) \
|
||
&& echo "zh_CN.UTF-8 UTF-8" >> /etc/locale.gen \
|
||
&& sudo /usr/sbin/update-locale LANG=zh_CN.UTF-8 LC_ALL=zh_CN.UTF-8 \
|
||
&& locale-gen \
|
||
&& pip config set global.index-url https://mirrors.bfsu.edu.cn/pypi/web/simple \
|
||
&& echo "**** clean up ****" && \
|
||
apt-get clean && \
|
||
rm -rf \
|
||
/config/* \
|
||
/tmp/* \
|
||
/var/lib/apt/lists/* \
|
||
/var/tmp/*
|