I'm trying to create an app image for my laravel 10 app without writing a docker file with buildpack, I've reading the official docs using of paketo and discovered the build code
pack build my-app --buildpack paketo-buildpacks/php \
--builder paketobuildpacks/builder:full
The problem is, laravel 10 is using node js too. is there's realy a way to build a laravel 10 app image using buildpack?
The Paketo PHP buildpack doesn't include Node by default but you can provide the Paketo
node-enginebuildpack to the build. Due to the way buildpacks work, we need another buildpack to "require" Node, so you'd also likely have to add thebuild-planbuildpack to require Node.Your build command would look like:
Then, you'd need to add a "plan.toml" file to your app to require Node as mentioned above. The
requires.metadatasection changes depending on whether you need Node during the build (build = true) or at run-time (launch = true):If this is a common use case, we could think about potentially adding first-class support for Node to the PHP buildpack in the future. Feel free to open an issue on GitHub at https://github.com/paketo-buildpacks/php to discuss this further.