I'am trying to use Docker with Springboot/Kotlin. Everything I do seems to lead to the same ERROR.
FROM maven:3.6.0-jdk-8-alpine
ADD pom.xml /
ADD . /
RUN mvn package
FROM openjdk:8-jdk-alpine
WORKDIR /root/
COPY --from=0 /target/*-jar-with-dependencies.jar app.jar
EXPOSE 8081
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom",".app.jar"]
package com.ob.stltool
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class StltoolApplication
fun main(args: Array<String>) {
runApplication<StltoolApplication>(*args)
}