Skip to content

Commit

Permalink
Fix Dockerfile for multi-stage build
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Feb 4, 2020
1 parent e477a1f commit ff45af9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM teamserverless/license-check:0.3.6 as license-check

FROM golang:1.13 as build
FROM golang:1.13 as builder
ENV CGO_ENABLED=0
ENV GO111MODULE=on
ENV GOFLAGS=-mod=vendor
Expand Down
9 changes: 9 additions & 0 deletions artifacts/nodeinfo-ingress-traefik.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: openfaas.com/v1alpha2
kind: FunctionIngress
metadata:
name: nodeinfo
namespace: openfaas
spec:
domain: "nodeinfo.myfaas.club"
function: "nodeinfo"
ingressType: "traefik"
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ var pullPolicyOptions = map[string]bool{
func init() {
flag.StringVar(&kubeconfig, "kubeconfig", "", "Path to a kubeconfig. Only required if out-of-cluster.")
flag.StringVar(&masterURL, "master", "", "The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.")
flag.Bool("logtostderr", false, "logtostderr legacy flag")
}

func main() {
Expand Down

0 comments on commit ff45af9

Please sign in to comment.