Home > Software engineering >  dockerfile pip install -r requirements.txt giving file not found error
dockerfile pip install -r requirements.txt giving file not found error

Time:09-25

Here's my dockerfile:

FROM tiangolo/uvicorn-gunicorn-fastapi:python3.7

COPY ./app /app/app

WORKDIR /app/app

RUN "pip install -r requirements.txt"

And here's my folder structure:

enter image description here

When I try to build the image using docker build -t myimage ., I get the following error: enter image description here

Any insight into resolving this would be appreciated.

CodePudding user response:

I’m not at my laptop to try but give the RUN command a shot without the quotes around it.

CodePudding user response:

Try

RUN ["pip", "install", "-r", "requirements.txt"]
  • Related