Initial application generated by JHipster-5.8.2
This commit is contained in:
35
gradle/docker.gradle
Normal file
35
gradle/docker.gradle
Normal file
@@ -0,0 +1,35 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
gradlePluginPortal()
|
||||
}
|
||||
dependencies {
|
||||
classpath "gradle.plugin.com.google.cloud.tools:jib-gradle-plugin:0.9.11"
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: com.google.cloud.tools.jib.gradle.JibPlugin
|
||||
|
||||
jib {
|
||||
from {
|
||||
image = 'openjdk:8-jre-alpine'
|
||||
}
|
||||
to {
|
||||
image = 'hsadminng:latest'
|
||||
}
|
||||
container {
|
||||
entrypoint = ['sh', '-c', 'chmod +x /entrypoint.sh && sync && /entrypoint.sh']
|
||||
ports = ['8080']
|
||||
environment = [
|
||||
SPRING_OUTPUT_ANSI_ENABLED: 'ALWAYS',
|
||||
JHIPSTER_SLEEP: '0'
|
||||
]
|
||||
useCurrentTimestamp = true
|
||||
}
|
||||
}
|
||||
|
||||
task copyWwwIntoStatic (type: Copy) {
|
||||
from 'build/www/'
|
||||
into 'build/resources/main/static'
|
||||
}
|
||||
|
||||
jibDockerBuild.dependsOn copyWwwIntoStatic
|
Reference in New Issue
Block a user