I have a few RUN commands in my Dockerfile that I would like to run with -no-cache each time I build a Docker image.
I understand the docker build --no-cache will disable caching for the entire Dockerfile.
Is it possible to disable cache for a specific RUN command?
This can be useful during debugging.
For example, if a Dockerfile fails on a particular line, it may be useful to run all previous lines up to a certain point, while maintaining the cache of some of those previous lines.
The reason being some Docker commands can take a long time (perhaps several minutes?) to run.
