Do not use cache when building the image. Enable the no-cache flag when build as docker build --no-cache