Build a docker context and re-write the dockerfile