From 5cd3a63ee14a017ac790c7ca8f81b02709668f37 Mon Sep 17 00:00:00 2001 From: serverless-devs Date: Mon, 26 May 2025 17:23:53 +0800 Subject: [PATCH] create s.yaml content --- s.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 s.yml diff --git a/s.yml b/s.yml new file mode 100644 index 0000000..9a26453 --- /dev/null +++ b/s.yml @@ -0,0 +1,45 @@ +edition: 1.0.0 +name: my-framework-app +access: default +services: + framework: + component: fc + props: + region: cn-hangzhou + service: + name: serverless-devs-application + function: + name: wxocr-fzbf + description: Initialize + runtime: custom.debian10 + environmentVariables: + PATH: >- + /var/fc/lang/python3.10/bin:/usr/local/bin/apache-maven/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ruby/bin:/opt/bin:/code:/code/bin + PYTHONPATH: /opt/python:/code + LD_LIBRARY_PATH: >- + /code:/code/lib:/usr/local/lib:/opt/lib:/opt/php8.1/lib:/opt/php8.0/lib:/opt/php7.2/lib + layers: + - acs:fc:cn-hangzhou:official:layers/Python3-Flask2x/versions/2 + memorySize: 512 + cpu: 0.5 + timeout: 60 + codeUri: ./ + diskSize: 512 + caPort: 9000 + customRuntimeConfig: + command: + - python3 + args: + - main.py + triggers: + - name: httpTrigger + type: http + config: + authType: anonymous + methods: + - GET + - POST + - PUT + - DELETE + - HEAD + - PATCH