Implemented transaction support in Dockerfiles.

Signed-off-by: Emily Maier <emily@emilymaier.net>