File tree Expand file tree Collapse file tree 4 files changed +8
-10
lines changed Expand file tree Collapse file tree 4 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1- FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.1 as watchdog
2- FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22-alpine as build
1+ FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.2 AS watchdog
2+ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22-alpine AS build
33
44ARG TARGETPLATFORM
55ARG BUILDPLATFORM
@@ -11,7 +11,6 @@ RUN apk --no-cache add git
1111COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
1212RUN chmod +x /usr/bin/fwatchdog
1313
14-
1514RUN mkdir -p /go/src/handler
1615WORKDIR /go/src/handler
1716COPY . .
@@ -37,7 +36,7 @@ WORKDIR /go/src/handler
3736RUN CGO_ENABLED=${CGO_ENABLED} GOOS=${TARGETOS} GOARCH=${TARGETARCH} GOFLAGS=${GOFLAGS} \
3837 go build --ldflags "-s -w" -o handler .
3938
40- FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.19.1 as ship
39+ FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.19.1 AS ship
4140# Add non root user and certs
4241
4342RUN apk --no-cache add ca-certificates \
Original file line number Diff line number Diff line change 11module handler
22
3- go 1.19
3+ go 1.22
44
55require github.com/openfaas/templates-sdk/go-http v0.0.0-20220408082716-5981c545cb03
Original file line number Diff line number Diff line change 1- FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.1 as watchdog
2- FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22-alpine as build
1+ FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.10.2 AS watchdog
2+ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22-alpine AS build
33
44ARG TARGETPLATFORM
55ARG BUILDPLATFORM
@@ -11,7 +11,6 @@ RUN apk --no-cache add git
1111COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
1212RUN chmod +x /usr/bin/fwatchdog
1313
14-
1514RUN mkdir -p /go/src/handler
1615WORKDIR /go/src/handler
1716COPY . .
@@ -34,7 +33,7 @@ WORKDIR /go/src/handler
3433RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
3534 go build --ldflags "-s -w" -o handler .
3635
37- FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.19.1 as ship
36+ FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.19.1 AS ship
3837
3938# Add non root user and certs
4039RUN apk --no-cache add ca-certificates \
Original file line number Diff line number Diff line change 11module handler
22
3- go 1.19
3+ go 1.22
You can’t perform that action at this time.
0 commit comments