fixes Docker image build by properly invalidating cache