Public | Automated Build

Last pushed: 4 months ago
Short Description
Java Docker images based on Alpine Linux
Full Description

What is Java?

Java is a concurrent, class-based, object-oriented language specifically designed to have as few implementation dependencies as possible.
It is intended to allow application developers to "write once, run anywhere", meaning that code that runs on one platform does not need to be recompiled to run on another.

Java is a registered trademark of Oracle and/or its affiliates.

This image is based on Alpine Linux and all the tools related to Java FX have been removed in order to reduce the image size.

The image size is approximately 179 MB.

Included packages

The following packages have been integrated:

  • curl
  • wget
  • ca-certificates
  • bash
  • tree
  • glibc (thanks to the work of gliderlabs )

Supported tags


The most straightforward way to use this image is to use a Java container as both the build and runtime environment.
In your Dockerfile, writing something along the lines of the following will compile and run your project:

FROM 1science/java:oracle-jre-7
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
RUN javac
CMD ["java", "Main"]

You can then run and build the Docker image:

docker build -t my-java-app .
docker run -it --rm --name my-running-app my-java-app


All the code contained in this repository, unless explicitly stated, is
licensed under ISC license.

A copy of the license can be found inside the LICENSE file.

Docker Pull Command
Source Repository

Comments (3)
2 years ago

How did you create multiple tags on an automated build? I've tried creating extra builds from my other repos on github, ive tried manually pushing images to my automated build repo on docker hub. Not sure how to do this.

2 years ago

@strop this image is based on alpine so maybe all system libs are not installed.

For your needs you may used the official java image !

2 years ago

I have run the image and then manually added FFMPEG. I have run a Java application and when running I am finding that I am getting the following message in the terminal

......: usr/lib/libstdc++.s0.6: no version information available (required by ......)

any way to stop this?