|
@@ -39,7 +39,7 @@ task dockerBuilder(type: Docker) {
|
|
tagVersion = jar.version
|
|
tagVersion = jar.version
|
|
addFile("./${jar.baseName}-${jar.version}.jar","app.jar")
|
|
addFile("./${jar.baseName}-${jar.version}.jar","app.jar")
|
|
addFile("*.yml","/config/")
|
|
addFile("*.yml","/config/")
|
|
- entryPoint(["java","-XX:+UnlockExperimentalVMOptions","-XX:+UseCGroupMemoryLimitForHeap","-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",'${JAVA_OPTS}',"-jar",'app.jar'])
|
|
exposePort(12121)
|
|
exposePort(12121)
|
|
doFirst {
|
|
doFirst {
|
|
copy {
|
|
copy {
|