first off english is not my first language so sorry for any mispelling mistakes i am not very experienced using docker and i am having a ton of problems while triying to run my code. i am trying to make a web app but i need to rebuild the image from scratch every single time i make a change in the code and that process usually takes a good amount of hours in my computer and that slows my development time to unbeliable amounts. can someone tell me what i am doing wrong?
this is whats inside my docker file.
# python ver
FROM python:3.8-alpine
# create code folder
RUN mkdir /dashboard
# copy code of service inside the folder
ADD . /dashboard
# move to the folder
WORKDIR /dashboard
# install dependencies
RUN apk --no-cache add musl-dev linux-headers g++
# install requirements
RUN pip install -r requirements.txt
# ejecute
CMD ["python", "main.py"]
i run this command to make the image
docker build -t cliente .
then i run this other command to conect the image to the database
docker run --name cliente -v "C:\Users\DELL AL\OneDrive\Escritorio\Tareas_Arquitectura\cliente_ETL":/dasboard -p 0.0.0.0:5000:5000 --link dgraph:dgraph cliente
from what i know after reviewing google by creating a volume whit the -v option it should be able to show any modified chages in the code inmediatly but instead it remains the same state as the last time "docker build -t cliente ." was used so my question is how to update the volume whitout needing to rebuild the image from scratch every single time