File tree 4 files changed +10
-6
lines changed
4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.3 as watchdog
2
- FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.16 -alpine3.14 as build
2
+ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.17 -alpine3.15 as build
3
3
4
4
ARG TARGETPLATFORM
5
5
ARG BUILDPLATFORM
Original file line number Diff line number Diff line change 1
1
language : golang-http
2
2
fprocess : ./handler
3
3
welcome_message : |
4
- You have created a new function which uses Go 1.16.
4
+ You have created a new function which uses Go 1.17 and Alpine
5
+ Linux as its base image.
5
6
6
7
To disable the go module, for private vendor code, please use
7
8
"--build-arg GO111MODULE=off" with faas-cli build or configure this
8
9
via your stack.yml file.
9
10
10
11
See more: https://docs.openfaas.com/cli/templates/
11
- For detailed examples:
12
+
13
+ For the template's repo and more examples:
12
14
https://github.com/openfaas-incubator/golang-http-template
Original file line number Diff line number Diff line change 1
1
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.3 as watchdog
2
- FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.16 -alpine3.14 as build
2
+ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.17 -alpine3.15 as build
3
3
4
4
ARG TARGETPLATFORM
5
5
ARG BUILDPLATFORM
Original file line number Diff line number Diff line change 1
1
language : golang-middleware
2
2
fprocess : ./handler
3
3
welcome_message : |
4
- You have created a new function which uses Go 1.16.
4
+ You have created a new function which uses Go 1.17 and Alpine
5
+ Linux as its base image.
5
6
6
7
To disable the go module, for private vendor code, please use
7
8
"--build-arg GO111MODULE=off" with faas-cli build or configure this
8
9
via your stack.yml file.
9
10
10
11
See more: https://docs.openfaas.com/cli/templates/
11
- For detailed examples:
12
+
13
+ For the template's repo and more examples:
12
14
https://github.com/openfaas-incubator/golang-http-template
You can’t perform that action at this time.
0 commit comments