Tag: setup.py

Docker pip安装创buildrecursiontmp / pip-build / tmp / pip-build …文件夹

我对Docker和Python应用程序有点新鲜。 我遇到了一个非常令人困惑的问题,经过一些推动,我奇迹般的解决了这个问题。 但是,我既不了解问题,也不了​​解解决scheme,并且要同时理解。 所以我在我的应用程序的根目录中有一个Dockerfile,可以这样做: COPY . . RUN apt-get update && apt-get install -y enchant \ && pip install –extra-index-url=${ARTIFACTORY} –no-cache-dir requirements.txt \ && pip install . \ # installs my python app using setup.py && python -m app.run_model ENTRYPOINT … 由于磁盘空间不足,一直失败。 好的,好吧,我删除了旧的,未使用的图像。 但是我不认为这是问题,因为它一直在失败,并且还产生了这些超长,超级怪异的recursion文件名,如: /tmp/pip-fih7z5-build/tmp/pip-fih7z5-build/tmp/pip-fih7z5-build/tmp/pip-fih7z5-build/tmp/pip-fih7z5-build/tmp/pip-fih7z5-build/tmp/pip-fih7z5-build/tmp/pip-fih7z5-build/tmp/pip-fih7z5-build/tmp/pip-fih7z5-build/tmp/pip-fih7z5-build/… 在Docker命令周围添加下面的包装器有点奏效: COPY . /workdir RUN cd /workdir \ … && […]

“pythonsetup.py安装”不能从Dockerfile工作,但我可以在容器中,并做同样的..任何指针?

我正在执行“sudo docker build”时出现此错误。 > (3:58:02 PM) njain: tep 28 : RUN python /tmp/setup.py install && > python /tmp/buzz/scripts/setuprabbit.py —> Running in e7afcbda3c75 > Traceback (most recent call last): File "/tmp/setup.py", line 7, in > <module> > long_description=open('README.md', 'r').read(), IOError: [Errno 2] No such file or directory: 'README.md' 2014/10/15 15:40:14 The command > [/bin/sh -c python […]