Docker error The command non-zero code: 1 python

i have problem when i tried to build container. And the error is :

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

i don’t know why, i follow the code from documentation but always get error.

  • How to change the dns of a running docker container
  • How to run undertow java app with docker
  • Dockerfile for open-source project [duplicate]
  • Permission Issue with Docker Volume Driver for Azure File Storage
  • Cant build a docker dart-runtime image after a local pub-get
  • Yum install won't work on a boot2docker host?
  • 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 when the container launches
    CMD ["python", ""]

  • How to deal with persistent storage (e.g. databases) in docker
  • Add -f parameter when running Docker Toolbox
  • Deployed war file to docker image cannot be accessed from TOMCAT 8 in Ubuntu 16.04
  • Use consul to export IP and Port to another Docker container dynamically
  • Is it possible to perform Docker-call from a container into the host?
  • Change default route in docker container
  • One Solution collect form web for “Docker error The command non-zero code: 1 python”

    Seems issue with the location of the file try to give absolute path of the file that you are referring in dockerfile

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.