File tree Expand file tree Collapse file tree 4 files changed +11
-21
lines changed Expand file tree Collapse file tree 4 files changed +11
-21
lines changed Original file line number Diff line number Diff line change 1
- FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.11 as watchdog
2
- FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.20 -alpine as build
1
+ FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.13 as watchdog
2
+ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.21 -alpine as build
3
3
4
4
ARG TARGETPLATFORM
5
5
ARG BUILDPLATFORM
@@ -37,7 +37,7 @@ WORKDIR /go/src/handler
37
37
RUN CGO_ENABLED=${CGO_ENABLED} GOOS=${TARGETOS} GOARCH=${TARGETARCH} GOFLAGS=${GOFLAGS} \
38
38
go build --ldflags "-s -w" -o handler .
39
39
40
- FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.18.2 as ship
40
+ FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.18.4 as ship
41
41
# Add non root user and certs
42
42
43
43
RUN apk --no-cache add ca-certificates \
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.19 and Alpine
5
- Linux as its base image .
4
+ This template is now deprecated, use the golang-middleware
5
+ template instead .
6
6
7
- To disable the go module, for private vendor code, please use
8
- "--build-arg GO111MODULE=off" with faas-cli build or configure this
9
- via your stack.yml file.
10
-
11
- See more: https://docs.openfaas.com/cli/templates/
12
-
13
- For the template's repo and more examples:
14
- https://github.com/openfaas/golang-http-template
7
+ https://docs.openfaas.com/languages/go/
Original file line number Diff line number Diff line change 1
- FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.11 as watchdog
2
- FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.20 -alpine as build
1
+ FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.13 as watchdog
2
+ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.21 -alpine as build
3
3
4
4
ARG TARGETPLATFORM
5
5
ARG BUILDPLATFORM
@@ -34,7 +34,7 @@ WORKDIR /go/src/handler
34
34
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
35
35
go build --ldflags "-s -w" -o handler .
36
36
37
- FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.18.2 as ship
37
+ FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.18.4 as ship
38
38
39
39
# Add non root user and certs
40
40
RUN apk --no-cache add ca-certificates \
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.19 and Alpine
4
+ You have created a new function which uses Go 1.21 and Alpine
5
5
Linux as its base image.
6
6
7
7
To disable the go module, for private vendor code, please use
8
8
"--build-arg GO111MODULE=off" with faas-cli build or configure this
9
9
via your stack.yml file.
10
10
11
- See more: https://docs.openfaas.com/cli/templates/
12
-
13
- For the template's repo and more examples:
14
- https://github.com/openfaas/golang-http-template
11
+ Learn more: https://docs.openfaas.com/languages/go/
You can’t perform that action at this time.
0 commit comments