|
@@ -26,7 +26,7 @@ bootJar { enabled = true }
|
|
|
jar { enabled = false }
|
|
|
|
|
|
docker{
|
|
|
- baseImage 'openjdk:8-jdk-alpine'
|
|
|
+ baseImage 'openjdk:8-jre-alpine'
|
|
|
maintainer 'tina 976056042@qq.com'
|
|
|
registry 'registry.cn-qingdao.aliyuncs.com'
|
|
|
}
|
|
@@ -36,7 +36,7 @@ task dockerBuilder(type: Docker) {
|
|
|
applicationName = 'registry'
|
|
|
tagVersion = jar.version
|
|
|
addFile("./${jar.baseName}-${jar.version}.jar","app.jar")
|
|
|
- entryPoint(["java","-Djava.security.egd=file:/dev/./urandom","-jar",'app.jar'])
|
|
|
+ entryPoint(["java","-XX:+UnlockExperimentalVMOptions","-XX:+UseCGroupMemoryLimitForHeap","-Djava.security.egd=file:/dev/./urandom","-Duser.timezone=GMT+08","-jar",'app.jar'])
|
|
|
exposePort(11001)
|
|
|
doFirst {
|
|
|
copy {
|