Alpine Linux base image with installed Zulu Community OpenJDK
271
Dockerfile linksThe 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
View license information for the software contained in this image:
Content type
Image
Digest
Size
134.4 MB
Last updated
about 7 years ago
docker pull devstudy/jdk