Step-by-step best practices for building a Java container and running it inside a Docker image.