FROM centos:7 RUN yum install -y libreoffice libgomp1 libffi-devel yum-utils make RUN yum-builddep python3 -y RUN yum clean packages && yum clean headers && yum clean oldheaders && yum clean all ADD . /workspace WORKDIR /workspace RUN unzip libstdc.so_.6.0.26.zip && rm -f /usr/lib64/libstdc++.so.6 && mv libstdc++.so.6.0.26 /usr/lib64/libstdc++.so.6.0.26 && ln -s /usr/lib64/libstdc++.so.6.0.26 /usr/lib64/libstdc++.so.6 RUN tar xvf Python-3.8.12.tgz && cd Python-3.8.12 && ./configure --prefix=/usr/local/python-3.8.12 && make && make install && cd /workspace RUN /usr/local/python-3.8.12/bin/python3.8 -m venv venv && source venv/bin/activate && pip install --upgrade pip -i https://mirror.baidu.com/pypi/simple && pip install --upgrade paddlepaddle-2.3.0-cp38-cp38-linux_x86_64.whl paddlenlp -i https://mirror.baidu.com/pypi/simple && pip install -r requirements.txt -i https://mirror.baidu.com/pypi/simple RUN rm -f /usr/bin/python && ln -s /workspace/venv/bin/python /usr/bin/python EXPOSE 8320 ENTRYPOINT ["/bin/sh"] CMD ["/workspace/start.sh"]