Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dockerfile not recognizing requirements.txt #2969

Closed
bgjelstrup opened this issue Oct 9, 2018 · 3 comments
Closed

dockerfile not recognizing requirements.txt #2969

bgjelstrup opened this issue Oct 9, 2018 · 3 comments
Labels
Status: Needs More Information This issue does not provide enough information to take further action.

Comments

@bgjelstrup
Copy link

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

@xolan
Copy link

xolan commented Oct 9, 2018

  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.

@techalchemy techalchemy added the Status: Needs More Information This issue does not provide enough information to take further action. label Oct 9, 2018
@techalchemy
Copy link
Member

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

@gsure4905
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs More Information This issue does not provide enough information to take further action.
Projects
None yet
Development

No branches or pull requests

4 participants