File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Expand file tree Collapse file tree 4 files changed +11
-9
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.10 as watchdog
2
- FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.18-alpine3.16 as build
1
+ FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.11 as watchdog
2
+ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.19-alpine as build
3
3
4
4
ARG TARGETPLATFORM
5
5
ARG BUILDPLATFORM
@@ -22,7 +22,6 @@ ARG GOFLAGS=""
22
22
ARG CGO_ENABLED=0
23
23
ENV CGO_ENABLED=${CGO_ENABLED}
24
24
25
-
26
25
# Run a gofmt and exclude all vendored code.
27
26
RUN test -z "$(gofmt -l $(find . -type f -name '*.go' -not -path " ./vendor/*" -not -path " ./function/vendor/*"))" || { echo "Run \" gofmt -s -w\" on your Golang code" ; exit 1; }
28
27
@@ -38,10 +37,12 @@ WORKDIR /go/src/handler
38
37
RUN CGO_ENABLED=${CGO_ENABLED} GOOS=${TARGETOS} GOARCH=${TARGETARCH} GOFLAGS=${GOFLAGS} \
39
38
go build --ldflags "-s -w" -a -installsuffix cgo -o handler .
40
39
41
- FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.16.2 as ship
40
+ FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.17.1 as ship
42
41
# Add non root user and certs
42
+
43
43
RUN apk --no-cache add ca-certificates \
44
44
&& addgroup -S app && adduser -S -g app app
45
+
45
46
# Split instructions so that buildkit can run & cache
46
47
# the previous command ahead of time.
47
48
RUN mkdir -p /home/app \
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.18 and Alpine
4
+ You have created a new function which uses Go 1.19 and Alpine
5
5
Linux as its base image.
6
6
7
7
To disable the go module, for private vendor code, please use
Original file line number Diff line number Diff line change 1
- FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.10 as watchdog
2
- FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.18-alpine3.16 as build
1
+ FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.11 as watchdog
2
+ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.19-alpine as build
3
3
4
4
ARG TARGETPLATFORM
5
5
ARG BUILDPLATFORM
@@ -34,11 +34,12 @@ WORKDIR /go/src/handler
34
34
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
35
35
go build --ldflags "-s -w" -a -installsuffix cgo -o handler .
36
36
37
- FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.16.2 as ship
37
+ FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.17.1 as ship
38
38
39
39
# Add non root user and certs
40
40
RUN apk --no-cache add ca-certificates \
41
41
&& addgroup -S app && adduser -S -g app app
42
+
42
43
# Split instructions so that buildkit can run & cache
43
44
# the previous command ahead of time.
44
45
RUN mkdir -p /home/app \
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.18 and Alpine
4
+ You have created a new function which uses Go 1.19 and Alpine
5
5
Linux as its base image.
6
6
7
7
To disable the go module, for private vendor code, please use
You can’t perform that action at this time.
0 commit comments