Skip to content

Minimal Java 11 image. Only essential modules to run a typical Spring Boot app.

Notifications You must be signed in to change notification settings

aint/javabase-docker-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Docker Pulls

About

This image contains a shrinked JDK 11 and is based on Alpine and Debian, which makes the download size to be around 35-50Mb.

Alpine based image

Debian based image

Includes the following Java modules:

  • java.base
  • java.logging
  • java.sql
  • java.desktop - java.beans.IntrospectionException
  • java.naming - javax.naming.NamingException
  • java.security.jgss - org.ietf.jgss.GSSException
  • java.management - javax.management.MBeanServer
  • java.instrument - java.lang.instrument.IllegalClassFormatException
  • jdk.unsupported - org.springframework.aop.framework.AopConfigException: Unable to instantiate proxy using Objenesis, and regular proxy instantiation via default constructor fails as well

Usage Example

To get the Debain based image:

$ docker pull aint/javabase

To get the Alpine based image:

$ docker pull aint/javabase:alpine

This image is intended to be a base image for your projects, so you may use it like this:

FROM aint/javabase

COPY target/spring-app.jar /app.jar

EXPOSE 8080

ENTRYPOINT ["java", "-jar", "app.jar"]
$ docker build -t spring_app .

About

Minimal Java 11 image. Only essential modules to run a typical Spring Boot app.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published