Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Mongodb文档无法在Docker中生成_Python_Mongodb_Docker - Fatal编程技术网

Python Mongodb文档无法在Docker中生成

Python Mongodb文档无法在Docker中生成,python,mongodb,docker,Python,Mongodb,Docker,我正试图使用以下Dockerfile构建MongoDB文档的本地副本,如下所示: FROM python:2 as builder RUN ["mkdir", "/pythonsrc"] WORKDIR "/pythonsrc" RUN ["git", "clone", "https://github.com/mongodb/docs.git", "."]

我正试图使用以下Dockerfile构建MongoDB文档的本地副本,如下所示:

FROM python:2 as builder
RUN ["mkdir", "/pythonsrc"]
WORKDIR "/pythonsrc"
RUN ["git", "clone", "https://github.com/mongodb/docs.git", "."]
RUN ["pip", "install", "-r", "requirements.txt"]
RUN ["make", "html"]

# FROM nginx:stable
# COPY --from=builder /pythonsrc/docs/_build/html /usr/share/nginx/html
但是它在
运行[“make”,“html”]
步骤失败,出现以下错误:

INFO:giza.operations.make:running sphinx build operation, equivalent to: giza sphinx --builder html
INFO:giza.content.assets:cloned master branch from repo https://github.com/mongodb/docs-tools.git
INFO:giza.content.system:migration: source/.static/10gen-gpg-key.asc --> /pythonsrc/build/public/10gen-gpg-key.asc
INFO:giza.content.system:migration: source/.static/10gen-security-gpg-key.asc --> /pythonsrc/build/public/10gen-security-gpg-key.asc
INFO:giza.content.source:created directory for sphinx build: /pythonsrc/build/master/source
ERROR:giza.pool:caught error "[Errno 2] No such file or directory" in migrating source to build/master/source <function transfer_source at 0x7f7e3d0192d0>, waiting for other tasks to finish
ERROR:giza.pool:[OSError(2, 'No such file or directory')]
还有其他人遇到过这个错误吗?是否有修复/解决方法

root@0ab5373268a4:/pythonsrc# which sphinx-build
/usr/local/bin/sphinx-build
root@0ab5373268a4:/pythonsrc# head -n1 `which sphinx-build`
#!/usr/local/bin/python
root@0ab5373268a4:/pythonsrc# which python
/usr/local/bin/python
root@0ab5373268a4:/pythonsrc# python
**Python 2.7.18** (default, Apr 20 2020, 19:27:10)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>