Skip to content

Commit

Permalink
fix docker entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
NikkyAI committed Sep 27, 2024
1 parent 3d272b5 commit a1fd52e
Show file tree
Hide file tree
Showing 5 changed files with 355 additions and 247 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ COPY --from=build --chown=user:user /home/gradle/src/build/libs/application.jar
ENV DOCKER_LOGGING="true"
ENV JVM_OPTS="-XX:MaxRAMPercentage=75.0"

ENTRYPOINT ["java", "$JVM_OPTS", "-jar", "/app/application.jar"]
ENTRYPOINT java $JVM_OPTS -jar /app/application.jar
27 changes: 16 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@file:Suppress("GradlePackageUpdate")

//import dev.kordex.gradle.plugins.docker.file.DockerfileCommand
//import dev.kordex.gradle.plugins.docker.file.add
import dev.kordex.gradle.plugins.kordex.DataCollection


Expand All @@ -9,25 +11,28 @@ plugins {
id("com.google.devtools.ksp")
id("com.github.johnrengelman.shadow")
id("dev.kordex.gradle.kordex")
// id("dev.kordex.gradle.docker") version "1.4.2"
}

group = "moe.nikky"
version = "1.0-SNAPSHOT"

repositories {
// google()
// mavenCentral()
}

//docker {
// generateOnBuild = true
// target = file("test_DockerFile")
// commands {
//// add(DockerfileCommand)
// }
//}
kordEx {
bot {
mainClass.set("moe.nikky.MainKt")
processDotEnv.set(true)
voice.set(false)
dataCollection.set(DataCollection.None)
mainClass = "moe.nikky.MainKt"
processDotEnv = true
voice = false
dataCollection = DataCollection.None
}
addDependencies.set(true)
addRepositories.set(true)
addDependencies = true
addRepositories = true
// kordVersion.set("latest")
// kordExVersion.set("latest")
// module("extra-phishing")
Expand Down
9 changes: 1 addition & 8 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@ pluginManagement {
}

plugins {
id("com.gradle.develocity") version "3.17"
//// # available:"3.17.1"
//// # available:"3.17.2"
//// # available:"3.17.3"
//// # available:"3.17.4"
//// # available:"3.17.5"
//// # available:"3.17.6"
//// # available:"3.18"
id("com.gradle.develocity") version "3.18.1"
id("de.fayard.refreshVersions") version "0.60.5"
}

Expand Down
Loading

0 comments on commit a1fd52e

Please sign in to comment.