Describe the lifecycle of a Docker container and how you would minimize Docker image sizes for production.