Is this requirements.txt from a git repo? If so, first you need to clone the git repo inside the container:
RUN git clone https://github.com/myuser/myrepo && \
cd myrepo && \
pip3 install -r requirements.txt
Likewise, you would need to make sure app.py is installed into the container.
The other way to do this is with a COPY command in your Dockerfile