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
RUN go get -v sigs.k8s.io/kustomize/kustomize
@@ -9,4 +9,4 @@ FROM alpine:latest
RUN apk add --no-cache bash
COPY --from=0 /go/bin/kustomize /usr/local/bin
COPY cockroachdb-template.sh /usr/local/bin/config-function
CMD ["config-function"]
CMD ["config-function"]