5 Simple Tips for Building Your First Docker Image with Java
If you’re an enterprise developer who’s been eagerly anticipating the move to container technology within your organization, you have more than a passing interest in learning the basic concepts behind Docker and the commonly used orchestration frameworks around them. In this article, I’d like to expand on these basic concepts and provide some simple yet practical tips for building your first Docker images using the Java programming language.
Choose a small base JDK image size
Docker images are built by reading instructions from
Dockerfile. You can find basic instructions for building your first Docker image here.
A common base image for including JDK in your application is the default
openjdk:latest image. This is based on the Debian operating system. The size of this image is 640.9 MB. The JDK version can be seen by running the image.
Read more at O'Reilly