mirror of
https://github.com/yiGmMk/wxocr.git
synced 2025-12-24 13:38:02 +08:00
create s.yaml content
This commit is contained in:
45
s.yml
Normal file
45
s.yml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user