ModuleNotFoundError: No module named ‘<module_name>’

I have 2 projects in Python-

  1. Framework (Python package)
  2. App (Flask app)

The Framework project has a script using setuptools and I am importing the framework modules in the App project.

I installed the Framework package locally on my machine and app is able to find my framework package.

I am now trying to get the App running inside docker. I am using the following dockerfile –

FROM python:3.6-alpine


COPY App /app/App
COPY Framework /app/Framework
COPY requirements.txt /app

RUN pip install -r requirements.txt
RUN python Framework/ install

ENTRYPOINT [ "python" ]

CMD ["App/"]

When I run docker build, it completes successfully but when I call docker run, I get the error

ModuleNotFoundError: No module named 'Framework'

I am a little lost as to what I am missing. Any help would be appreciated.

Source: StackOverflow