我有一个Micronaut应用程序,可以在我的本地环境中正常运行。我现在正在尝试为其构建Docker映像。
order_info
构建失败,并显示以下错误:
D:\project\student-custom-runtime> docker build . -t student-custom-runtime
但是,我检查了我项目的项目和外部依赖项是否有Error: Main entry point class 'io.micronaut.function.aws.runtime.MicronautLambdaRuntime' not found.
jar
这是 build-native-image.sh 文件:
micronaut-function-aws-custom-runtime
Stacktrace:
${GRAALVM_HOME}/bin/native-image --no-server \
--class-path student-custom-runtime-*.jar \
-H:ReflectionConfigurationFiles=src/main/resources/reflect.json \
-H:EnableURLProtocols=http \
-H:IncludeResources="logback.xml|application.properties|.*/endpoints.json$" \
-H:Log=registerResource \
-H:DynamicProxyConfigurationFiles="dynamic-proxies.json" \
-H:Name=server \
-H:Class=io.micronaut.function.aws.runtime.MicronautLambdaRuntime \
-H:+ReportUnsupportedElementsAtRuntime \
-H:-AllowVMInspection \
我不确定会导致此错误的原因。任何帮助表示赞赏!