File tree Expand file tree Collapse file tree 5 files changed +9
-15
lines changed
custom-container-function/fc-custom-container-http-springboot Expand file tree Collapse file tree 5 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Type: Application
22Name : start-fc-custom-container-http-springboot
33Provider :
44 - 阿里云
5- Version : 1.2.15
5+ Version : 1.2.16
66Description : 快速部署一个基于custom container runtime 的 springboot HTTP 类型的 Hello World 到阿里云函数计算
77HomePage : https://github.com/devsapp/start-fc
88Tags :
Original file line number Diff line number Diff line change 1- FROM maven:3.8.2-openjdk-8
1+ FROM rsonghuster/openjdk8:stretch
22
3- RUN mkdir -p /usr/src/ app
4- WORKDIR /usr/src/ app
3+ RUN mkdir -p /usr/app
4+ WORKDIR /usr/app
55COPY src ./src
66COPY pom.xml ./pom.xml
77COPY settings.xml /usr/share/maven/conf/settings.xml
88RUN mvn package
9-
10- # # prod image on FC
11- FROM maven:3.8.2-openjdk-8
12- RUN mkdir -p /usr/src/app
13- WORKDIR /usr/src/app
14- COPY --from=0 /usr/src/app/target/demo-0.1.0.jar /usr/src/app/demo.jar
15- ENTRYPOINT ["java" , "-jar" , "demo.jar" ]
9+ ENTRYPOINT ["java" , "-jar" , "/usr/app/target/demo-0.1.0.jar" ]
Original file line number Diff line number Diff line change 1313 <parent >
1414 <groupId >org.springframework.boot</groupId >
1515 <artifactId >spring-boot-starter-parent</artifactId >
16- <version >2.3.0 .RELEASE</version >
16+ <version >2.1.8 .RELEASE</version >
1717 <relativePath />
1818 </parent >
1919
Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ services:
5050 name : " {{ functionName }}"
5151 description : ' hello world by serverless devs'
5252 caPort : 9000
53- memorySize : 256
53+ memorySize : 1024
54+ instanceConcurrency : 16
5455 timeout : 60
5556 runtime : custom-container
5657 customContainerConfig :
Original file line number Diff line number Diff line change 1- custom-container-function/fc-custom-container-event-python3.9
2- custom-container-function/fc-custom-container-event-nodejs14
1+ custom-container-function/fc-custom-container-http-springboot
You can’t perform that action at this time.
0 commit comments