A sample Java9 HTTP server in 35MB Docker container
245
This project showcases what is in my opinion the coolest features in JDK 9:
This translates to less disk space and faster startup times than the full JVM. Whether or not it improves memory usage or speed after initial startup is an open question in my mind.
GIT_REVISION=$(git rev-parse HEAD)
REPOSITORY=stevenacoffman/java9-jlink-web
docker build \
-t "${REPOSITORY}:GITSHA-${GIT_REVISION}" \
-t "${REPOSITORY}:latest" \
.
docker run -it -p 9000:9000 stevenacoffman/java9-jlink-web
Running the container is old news:
docker run -p 9000:9000 stevenacoffman/java9-jlink-web
Content type
Image
Digest
Size
21.7 MB
Last updated
almost 9 years ago
docker pull stevenacoffman/java9-jlink-web