Help Center/ ServiceStage/ User Guide (Kuala Lumpur Region)/ FAQs/ Application Management/ How Do I Solve the Dependency Problem When a Node Program Runs in Docker?
Updated on 2024-08-05 GMT+08:00

How Do I Solve the Dependency Problem When a Node Program Runs in Docker?

Symptom

A node program depends on node-gyp when running in the microservice docker. How can I install the dependency before the program runs?

Solution

Customize a Dockerfile and add the node-gyp dependency to the Dockerfile.