I have a really simple java spring-boot gradle application. When I build an image from source with:
pack build testapp:0.0.1 --builder paketobuildpacks/builder:base
and try to run it with docker I get the following error:
ERROR: failed to launch: determine start command: when there is no default process a command is required
.
The generated Entrypoint in this image is "/cnb/lifecycle/launcher"
.
When I inspect the image with pack inspect-image
there are no processes.
I tried this with different java spring-boot gradle applications. When I use the "bootBuildImage" gradle task, it does nearly the same but uses the pre-build .jar-file and the resulting image works. The generated Entrypoint in this image is "/cnb/process/web"
and pack inspect-image
shows three processes.
Any ideas?