forked from Dongjiaqi/reposync
Update Dockerfile
This commit is contained in:
parent
2bfb9186a8
commit
57c035cb2d
|
@ -1,14 +1,16 @@
|
|||
FROM centos:7
|
||||
|
||||
RUN curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
|
||||
|
||||
RUN yum update -y && \
|
||||
yum install -y wget gcc make openssl-devel bzip2-devel libffi-devel zlib-devel
|
||||
RUN wget -P /data/ob-tool https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz
|
||||
RUN wget -P /data/ob-tool https://repo.huaweicloud.com:8443/artifactory/python-local/3.9.6/Python-3.9.6.tgz
|
||||
RUN cd /data/ob-tool && tar xzf Python-3.9.6.tgz
|
||||
RUN cd /data/ob-tool/Python-3.9.6 && ./configure --enable-optimizations && make altinstall
|
||||
|
||||
ADD ./ /data/ob-robot/
|
||||
RUN cd /data/ob-robot/ && \
|
||||
pip3.9 install -r /data/ob-robot/requirement.txt
|
||||
pip3.9 install -r /data/ob-robot/requirement.txt -i https://mirrors.aliyun.com/pypi/simple/
|
||||
|
||||
RUN yum install -y git openssh-server
|
||||
|
||||
|
|
Loading…
Reference in New Issue