@Hammed Ejilola , Based on my understanding of your issue description, you are experiencing this issue when you install certain node.js packages. it could be due to package in your application which has a dependency on a Linux Shared Library which is missing in the Docker Image.
You may to add the App Setting SCM_DO_BUILD_DURING_DEPLOYMENT to true and then check.
Just to highlight, Node packages may rely on Shared Libraries (.so files) that are expected to exist on the current distribution. In this case, since App Service Linux runs in Docker Containers, the distribution and the OS this is built off of would be expected to have these .so
files (if needed).
You may try these approaches:
1. You may add or modify Custom Startup Script - Checkout this article Azure App Service Linux - Custom Startup Script for Nodejs & Python - on how to implement this. It’s important to note that each .so
may require various Linux-based dependencies to be fully installed**.** Check the .so
file in question to see what other Linux dependencies may be required for it.
- If you haven't done, leverage Custom Docker Image -Nodejs on App Service Linux and why to avoid installing packages in startup scripts, and see if it helps.
Kindly let us know, I'll follow-up with you further.