how to containerize legacy application