|
@@ -7,9 +7,10 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shangh
|
|
|
RUN echo "alias ll='ls -hall'" >> ~/.bashrc && source ~/.bashrc
|
|
|
|
|
|
# 更新yum源
|
|
|
-RUN curl -o /etc/yum.repos.d/CentOS7-Aliyun.repo http://mirrors.aliyun.com/repo/Centos-7.repo && curl -o /etc/yum.repos.d/epel-7-Aliyun.repo http://mirrors.aliyun.com/repo/epel-7.repo
|
|
|
-RUN yum clean all && yum makecache && yum -y update
|
|
|
-RUN yum install -y kde-l10n-Chinese
|
|
|
+RUN curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo && \
|
|
|
+ sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo && \
|
|
|
+ yum makecache && \
|
|
|
+ yum install -y kde-l10n-Chinese
|
|
|
|
|
|
# 设置系统编码
|
|
|
ENV LANG=zh_CN.UTF-8
|
|
@@ -18,7 +19,7 @@ RUN grep -qxF 'set encoding=utf8' /etc/virc || echo 'set encoding=utf8' >> /etc/
|
|
|
|
|
|
WORKDIR /opt
|
|
|
# 安装 python3.8.10 gcc相关配置
|
|
|
-RUN yum --exclude=kernel* update -y && yum groupinstall -y 'Development Tools' && yum install -y gcc openssl-devel bzip2-devel libffi-devel mesa-libGL
|
|
|
+RUN yum --exclude=kernel* update -y && yum groupinstall -y 'Development Tools' && yum install -y gcc openssl-devel bzip2-devel libffi-devel mesa-libGL libev-devel epel-release
|
|
|
# python3.8.10下载与解压缩
|
|
|
RUN curl -o python3.8.10.tgz https://mirrors.huaweicloud.com/python/3.8.10/Python-3.8.10.tgz && tar -zxvf python3.8.10.tgz
|
|
|
# 编译 python3.8.10
|