Sign inSign up

devstudy/jdk

By devstudy

•Updated about 7 years ago

Alpine Linux base image with installed Zulu Community OpenJDK

Image
0

271

devstudy/jdk repository overview

⁠How to use this image

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 devstudy/jdk
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
RUN javac Main.java
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

⁠License

View license information for the software contained in this image:

Tag summary

Content type

Image

Digest

Size

134.4 MB

Last updated

about 7 years ago

docker pull devstudy/jdk