Pipenv: dockerfile not recognizing requirements.txt

Created on 9 Oct 2018  ·  3Comments  ·  Source: pypa/pipenv

when building my dockerfile it keeps telling me there is no directory, I have even tried pointing it directly to path but to no prevail. basically trying to learn my way around docker for my boss but can't even get it to initiate installing the specified apps in my requirements.txt.

Step 6/9 : RUN pip install -r requirements.txt
---> Running in 34df017c7b91
Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
ERROR: Service 'web' failed to build: The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1

Needs More Information

Most helpful comment

  1. You're using pip directly, not pipenv.
  2. Without seeing the rest (or relevant rest) of your Dockerfile, it's tough to know where the issue lies.
  3. I assume you've forgotten to copy or mount the requirements.txt in the working directory.

All 3 comments

  1. You're using pip directly, not pipenv.
  2. Without seeing the rest (or relevant rest) of your Dockerfile, it's tough to know where the issue lies.
  3. I assume you've forgotten to copy or mount the requirements.txt in the working directory.

closing due to lack of info, hope you had some success figuring this out

I am facing same issue googled still i didn't find any answer.any suggestions pls

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jeyraof picture jeyraof  ·  3Comments

johnjiang picture johnjiang  ·  3Comments

FooBarQuaxx picture FooBarQuaxx  ·  3Comments

xi picture xi  ·  3Comments

JacobHayes picture JacobHayes  ·  3Comments