changed base images to debian and ubuntu:12.04; standardized the Dockerfiles