Layers offer a centralized way to manage public dependencies and resources for functions. You can package content such as dependency libraries, runtimes, or configuration files into layers for reuse across multiple functions. This approach not only reduces the size of function deployment packages but also facilitates resource sharing among functions.
Build layers
You can use the public layers provided by Function Compute or package your own files to create custom layers. For more information, see Create a custom layer or Use a Dockerfile to build a layer.
Use layers
You can configure both official public layers and custom layers for your functions. For more information, refer to the following documents: