$crooge MxDuck
$crooge MxDuck
KKord
Created by $crooge MxDuck on 7/13/2024 in #help
Running distribution inside docker container?
I built distribution and currently trying to run inside a Docker container but getting such error. Anyone knows what might be the problem?
glados-bot-container | Error: Could not find or load main class surik.simyan.glados.MainKt
glados-bot-container | Caused by: java.lang.ClassNotFoundException: surik.simyan.glados.MainKt
glados-bot-container | Error: Could not find or load main class surik.simyan.glados.MainKt
glados-bot-container | Caused by: java.lang.ClassNotFoundException: surik.simyan.glados.MainKt
FROM openjdk:22
RUN mkdir /app
COPY ./build/install/*-all.jar /app/glados.jar
RUN chmod +x /app/glados.sh
ENTRYPOINT ["/app/glados.jar/bin/glados.sh"]
FROM openjdk:22
RUN mkdir /app
COPY ./build/install/*-all.jar /app/glados.jar
RUN chmod +x /app/glados.sh
ENTRYPOINT ["/app/glados.jar/bin/glados.sh"]
plugins {
alias(libs.plugins.kotlinJvm)
application
}

group = "surik.simyan.glados"
version = "1.0.0"
application {
mainClass.set("surik.simyan.glados.MainKt")
distributions.forEach {
it.distributionBaseName.set("surik.simyan.glados-bot-$version-all.jar")
}
}
plugins {
alias(libs.plugins.kotlinJvm)
application
}

group = "surik.simyan.glados"
version = "1.0.0"
application {
mainClass.set("surik.simyan.glados.MainKt")
distributions.forEach {
it.distributionBaseName.set("surik.simyan.glados-bot-$version-all.jar")
}
}
68 replies
KKord
Created by $crooge MxDuck on 5/22/2023 in #help
Outdated wiki
No description
3 replies