代码拉取完成,页面将自动刷新
FROM centos:7.2.1511
LABEL Author="Pad0y<github.com/Pad0y>"
ENV LANG C.UTF-8 LC_ALL=C.UTF-8
COPY . /data/project/
WORKDIR /data/project/
RUN yum -y update \
&& yum -y install gcc gcc-c++ wget make git libSM-1.2.2-2.el7.x86_64 libXrender libXext\
&& yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel \
&& yum -y install python3-devel centos-release-scl scl-utils-build \
&& yum -y install devtoolset-7-gcc* \
&& echo 'source /opt/rh/devtoolset-7/enable' >> ~/.bash_profile \
&& source ~/.bash_profile \
&& scl enable devtoolset-7 bash
RUN pip3 install --user -U pip -i https://pypi.tuna.tsinghua.edu.cn/simple/ \
&& pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/
RUN source ~/.bash_profile && pip3 install -r requirements.txt \
&& pip3 install ./resource/torch-1.2.0+cpu-cp36-cp36m-manylinux1_x86_64.whl \
&& pip3 install ./resource/torchvision-0.4.0+cpu-cp36-cp36m-manylinux1_x86_64.whl
RUN source ~/.bash_profile && cd ./psenet/pse && make clean && make
RUN yum clean all && \
rm -rf /tmp/* && \
rm -rf /data/project/resource
EXPOSE 5000
EXPOSE 8000
CMD python3 flask_app.py
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。