Some common dependent libraries have been built in various runtimes of SCF, which can be queried in the corresponding runtime development guide:
You can save the dependent libraries of the SCF code in the code package and upload it to the cloud for use by SCF. SCF supports the following runtimes and usage methods:
Dependency manager: In Node.js, dependencies can be managed with the npm package manager.
node_modulesfolder with the
Dependency manager: In Python, dependencies can be managed with the pip package manager.
pip install -t .command.
- SCF is running on CentOS 7. You need to install dependencies in the same operating system; otherwise, the uploaded dependencies may not be found in runtimes.
- If a dependencies involve a dynamic link library, you need to copy the dependencies to the dependency installation directory, and then package and upload them. For more information, see Installing Dependency with Docker.
Dependency manager: In Java, dependencies can be managed with the Maven package manager.
Instructions: upload the final binary file when packaging.
SCF provides the following three upload methods for your choice based on your actual needs: