20 lines
1.0 KiB
Docker
20 lines
1.0 KiB
Docker
# base
|
||
FROM ubuntu:22.04
|
||
# 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 --no-install-recommends \
|
||
# && 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 \
|
||
ssh locales language-pack-zh-hans-base \
|
||
&& sed -i 's/^#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config \
|
||
&& sed -i 's/^UsePAM yes/UsePAM no/' /etc/ssh/sshd_config \
|
||
&& echo "zh_CN.UTF-8 UTF-8" >> /etc/locale.gen \
|
||
&& /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 \
|
||
&& apt-get clean \
|
||
&& rm -rf /config/* /tmp/* /var/lib/apt/lists/* /var/tmp/* |