docker错误该命令非零代码:1 python

我有问题,当我试图build立容器。 而错误是:

The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1 

我不知道为什么,我按照从文档的代码,但总是得到错误。

Dockerfile

 FROM python:2.7-slim # # # Set the working directory to /app WORKDIR /app # # # Copy the current directory contents into the container at /app ADD . /app # # # Install any needed packages specified in requirements.txt RUN pip install -r requirements.txt # # # Make port 80 available to the world outside this container EXPOSE 80 # # # Define environment variable ENV NAME World # # # Run app.py when the container launches CMD ["python", "app.py"] 

似乎问题与文件的位置尝试提供您在dockerfile中引用的文件的绝对path