How Do I Handle Docker Application Dependency?
Symptom
If I want to Run a node program in the microservice docker. The program depends on node-gyp. How do I install the dependency before compiling the program?
The environment does not have the permission to access the external network. Therefore, the dependency cannot be obtained from the external network. You need to compile the node program in advance.
Solution
- Compile your project.
- Compress the compiled project into a .zip package.
- Upload the package to OBS and use the application management function of ServiceStage.
When creating a component, select Node.js 8 during running.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot