update functions/examples/template-go-nginx code and update go1.18

This commit is contained in:
koba1t
2022-06-30 02:42:59 +09:00
parent 0421c9fb50
commit 20a93fdd12
18 changed files with 653 additions and 233 deletions

View File

@@ -1,7 +1,7 @@
# Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
FROM golang:1.13-stretch
FROM golang:1.18-stretch
ENV CGO_ENABLED=0
WORKDIR /go/src/
COPY go.mod .
@@ -12,4 +12,4 @@ RUN go build -v -o /usr/local/bin/config-function ./
FROM alpine:latest
COPY --from=0 /usr/local/bin/config-function /usr/local/bin/config-function
CMD ["config-function"]
CMD ["config-function"]