forked from Dongjiaqi/reposync
Update Dockerfile
This commit is contained in:
parent
2bfb9186a8
commit
57c035cb2d
10
Dockerfile
10
Dockerfile
|
@ -1,16 +1,18 @@
|
|||
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
|
||||
RUN yum install -y git openssh-server
|
||||
|
||||
ENV GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=no -i /root/.ssh/id_rsa'
|
||||
RUN yum install -y autoconf gettext && \
|
||||
|
@ -24,4 +26,4 @@ RUN yum install -y autoconf gettext && \
|
|||
make install
|
||||
|
||||
WORKDIR /data/ob-robot
|
||||
CMD if [ "$BOOT_MODE" = "app" ] ; then python3.9 main.py; fi
|
||||
CMD if [ "$BOOT_MODE" = "app" ] ; then python3.9 main.py; fi
|
Loading…
Reference in New Issue