Every time I build the image and run it and then delete it. Then after I want to run this image again after changing some code in our application, then all the requirements.txt file and the base image python:3 will be downloaded again. Then what I have to stop again downloading the requirements.txt file every time. Can you give me any solution?
Just have a look of my Dockerfile
FROM python:3
ADD . /usr/src/app
WORKDIR /usr/src/app
RUN pip3 install -r requirements.txt
EXPOSE 5050
CMD [ "python", "app.py" ]