Lightweight base image for self contained java web apps like spring boot apps.
398
Dockerfile links8-1.0.0, latest 8-1.0.0/Dockerfile.
+-- pom.xml
+-- src
| +-- ...
+-- conf
| +-- common
| | +-- fooCommon.properties
| +-- development
| | +-- logback.xml
| | +-- deploy-propeties.json
| +-- staging
| | +-- logback.xml
| | +-- deploy-propeties.json
| +-- production
| | +-- logback.xml
| | +-- deploy-propeties.json
| +-- newrelic
| | +-- newrelic.yml
{
"jvmArguments":"-Xms1024m -Xmx1024m",
"debugEnabled": false,
"jmxEnabled": true,
"newRelicEnabled": true,
"mainClass": "com.foo.App"
}
FROM francomorinigo/java-web-app:8-1.0.0
ARG version
# Uncomment if you use newrelic
# COPY target/newrelic/newrelic.jar application/newrelic/newrelic.jar
COPY conf application/
COPY target/fooApp-$version.jar application/fooApp-$version.jar
docker build -t fooApp:fooVersion . --build-arg version=fooVersion
$ docker run -e ENV=development -e HOST_IP=fooIp -v /application --name fooApp -P fooApp
Content type
Image
Digest
Size
40.3 MB
Last updated
over 9 years ago
docker pull francomorinigo/java-web-app