【发布时间】:2018-09-24 19:10:16
【问题描述】:
我正在使用 Docker 构建一个应用程序。我的 Dockerfile 看起来像这样:
FROM python:3.7.0
WORKDIR /app
COPY . /app
RUN apt-get -y update && apt-get -y install apt-utils build-essential libxml2-dev zlib1g-dev python-dev python-pip pkg-config libffi-dev libcairo-dev
RUN pip install -r requirements.txt
CMD ["./run"]
我的项目结构:
.
├── Dockerfile
├── requirements.txt
├── run
└── src
├── stuff
在需求中,我输入了plotly、pytest 和python-igraph。问题是,python-igraph 卡在这部分
Running setup.py bdist_wheel for python-igraph: started
Running setup.py bdist_wheel for python-igraph: still running...
很长一段时间,但最终它会提取数据并构建图像。但是,每次都重建项目那么长时间是不可接受的。
以某种方式提取不相互依赖的模块的正确方法是什么?
【问题讨论】:
标签: python docker plotly igraph layer