https://github.com/mjibson/ddd/blob/master/Dockerfile
DeepDream is Caffe. This uses Caffe2[2]
I actually worked it out: you just set the path to Caffe2 in the python code. It works really (really!) well.
[2] https://github.com/Yangqing/caffe2/
https://github.com/mjibson/ddd/blob/master/Dockerfile