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