Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sapvs/java-docker
Low profile java image on alpine linux, JRE headless
https://github.com/sapvs/java-docker
alpine docker java jre-headless openjdk
Last synced: 20 days ago
JSON representation
Low profile java image on alpine linux, JRE headless
- Host: GitHub
- URL: https://github.com/sapvs/java-docker
- Owner: sapvs
- License: mit
- Created: 2022-08-21T09:47:29.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T03:25:20.000Z (21 days ago)
- Last Synced: 2024-10-24T20:37:41.348Z (20 days ago)
- Topics: alpine, docker, java, jre-headless, openjdk
- Language: Dockerfile
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![push](https://github.com/sapvs/java-docker/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/sapvs/java-docker/actions/workflows/docker-publish.yml)
# Java Alpine Image - JRE Headless
Minimal java image with low footprint alpine linux base.
Includes only JRE-Headless package to further reduce the size, as most docker containers use api model so normal JRE (with GUI support) is an overhead.
## Using this image
Image tags are of format `java:JRE_VERSION`
Pull the image from [dockerhub](https://hub.docker.com/r/vsaps/java/)
```bash
docker pull vsaps/java:21
```Copy the required jars/java classes to the image and execute with java
e.g. Dockerfile
```docker
FROM vsaps/java:21RUN mkdir /app
WORKDIR /appCOPY target/my-jar.jar .
#EXPOSE 8080
ENTRYPOINT ["java", "-jar", "my-jar.jar" ]
```## Source
[java-docker](https://github.com/sapvs/java-docker)