Add no cache for docker build

Add a new flag to disable the image cache when building images.

Closes #1326