Skip to content

Commit

Permalink
Change binary name
Browse files Browse the repository at this point in the history
  • Loading branch information
alexppg committed Nov 16, 2019
1 parent 70808d9 commit 228b94a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Build the manager binary
# Build the network-ingress-controller binary
FROM golang:1.12.5 as builder

WORKDIR /workspace
Expand All @@ -15,13 +15,13 @@ COPY api/ api/
COPY controllers/ controllers/

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager main.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o network-ingress-controller main.go

# Use distroless as minimal base image to package the manager binary
# Use distroless as minimal base image to package the network-ingress-controller binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:nonroot
FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY --from=builder /workspace/manager .
COPY --from=builder /workspace/network-ingress-controller .
USER nonroot:nonroot

ENTRYPOINT ["/manager"]
ENTRYPOINT ["/network-ingress-controller"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test: generate fmt vet manifests

# Build manager binary
manager: generate fmt vet
go build -o bin/manager main.go
go build -o bin/network-ingress-controller main.go

# Run against the configured Kubernetes cluster in ~/.kube/config
run: generate fmt vet manifests
Expand Down

0 comments on commit 228b94a

Please sign in to comment.