Layers offer a centralized way to manage public dependencies and resources across functions. Package dependency libraries, runtimes, or configuration files into layers for reuse, reducing function deployment packages size and enabling resource sharing.
Build layers
Use the public layers provided by Function Compute or create custom layers from your own files. For more information, see Create a custom layer or How to build a layer from a Dockerfile.
Use layers
Configure official public layers or custom layers for your functions. For more information, refer to the following documents: