Ayudh
Ayudh

Reputation: 1763

dockerfile pip install -r requirements.txt giving file not found error

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.

Upvotes: 1

Views: 429

Answers (1)

ogdenkev
ogdenkev

Reputation: 2374

Try

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

Upvotes: 1

Related Questions