Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/develar/docker-java
https://github.com/develar/docker-java
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/develar/docker-java
- Owner: develar
- Created: 2015-03-27T10:20:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-21T10:16:10.000Z (over 8 years ago)
- Last Synced: 2024-10-10T12:38:37.481Z (27 days ago)
- Size: 4.98 MB
- Stars: 52
- Watchers: 5
- Forks: 28
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Minimal Docker image with Java
[Docker](https://www.docker.com/) image to run [Java](https://www.java.com/) applications.
This is based off [Alpine](https://registry.hub.docker.com/_/alpine/) to keep the size minimal (117 MB).Consider to use develar/java:8u45-dcevm during development — [DCEVM](http://dcevm.github.io).
Docker compose example to run application from classes:
```yaml
image: develar/java:8u45
environment:
_JAVA_OPTIONS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5050 -Xms48m -Xmx64M"
CLASSPATH: /app/lib/*:/app/classes
volumes:
- out/production/moduleName:/app/classes:ro
- lib:/app/lib:ro
command: com.example.ClassName
expose:
- "80"
ports:
- "5050:5050"
```