I'm using RUN ls /some/directory
for "printf-debugging" of a Dockerfile
. After the command has been run once and no command has changed before, the result is cached and no output is provided.
I can change the command with a part which is never executed, e.g. append || echo some changing number]
which is annoying for every run or turn off the build cache which affects more RUN
s than necessary and thus slows down the development of the Dockerfile
.
Is there a way to disable the cache for just one RUN
without any of the described downsides?