FROM centos:7
LABEL maintainer="XIN LIU <sitliux@foxmail.com>"
LABEL version="1.0.0"
#定义时区参数
ENV TZ=GMT
#安装必要应用
RUN yum -y install make gcc kde-l10n-Chinese glibc-common epel-release vim openssl-devel bzip2-devel libffi-devel xz-devel groupinstall "Development Tools"
RUN ln -snf /usr/share/zoneinfo/GMT /etc/localtime && echo "$TZ" > /etc/timezone &&\
localedef -c -f UTF-8 -i zh_CN zh_CN.utf8
WORKDIR /app
#设置环境变量
ENV LC_ALL zh_CN.utf8
ADD Python-3.8.6.tgz /app
RUN cd /app/Python-3.8.6 && \
./configure --enable-optimizations &&\
make altinstall
RUN pip3.8 install datetime &&\
pip3.8 install requests
RUN pip3.8 install urllib3==1.25.11
#COPY send_ssl_time.py /app
COPY start.sh /app
#CMD ["sh","-c","./start.sh","/usr/local/bin/python3.8", "./send_ssl_time.py"]
CMD ["sh","-c","./start.sh"]
构建python运行环境的镜像
未经允许不得转载:劉大帥 » 构建python运行环境的镜像
最新评论
# 这只是一个创建远程登录并授权的语句、仅作为记录 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'Fit2cloud!' WITH GRANT OPTION;
当MGR集群初始化结束后,需要开启MGR集群自启动(需要有一台节点是自动开启引导) loose-group_replication_start_on_boot = ON #设置节点是否在启动时自动启动 MGR 集群 loose-group_replication_bootstrap_group = ON #设置节点是否作为初始引导节点启动集群
密码:blog.sirliu.com
本内容密码:blog.sirliu.com 最新整理的文章在这里喔:https://blog.sirliu.com/2018/11/shell_lian_xi_ti.html