Gids
Gids

Reputation: 752

Paketo: Running npm install following Python buildpack

We have added a static build step to our Python app which is triggered by npm build We would like to implement this in our Paketo build so that the built client-side assets are available at runtime.

Based on the documentation it appears this should be possible by adding a --post-buildpack argument. However, when we tried adding this e.g.

pack build test_img --builder paketobuildpacks/builder-jammy-full --post-buildpack paketo-buildpacks/[email protected] 

It appears to no longer detect the Python dependencies e.g.

6 of 11 buildpacks participating
paketo-buildpacks/ca-certificates 3.6.7
paketo-buildpacks/node-engine     3.2.1
paketo-buildpacks/npm-install     1.4.0
paketo-buildpacks/node-run-script 1.0.16
paketo-buildpacks/node-start      1.1.5
paketo-buildpacks/procfile        5.6.8

Therefore the Python dependencies are no longer available in the PATH and the app fails to start up.

Is it possible to trigger npm build whilst retaining the Python layers in the buildpack?

Upvotes: 0

Views: 116

Answers (0)

Related Questions