Skip to content

Commit

Permalink
merge docker-build
Browse files Browse the repository at this point in the history
  • Loading branch information
Amitk3293 committed Sep 1, 2022
2 parents e276f19 + 0948164 commit dcbb490
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ testbin/*
*~
.vscode

<<<<<<< HEAD
=======

>>>>>>> docker-build
# binaries
build/
manager
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.18 AS builder
FROM golang:1.18 as builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand All @@ -23,7 +23,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:nonroot AS distroless
FROM gcr.io/distroless/static:nonroot as distroless
WORKDIR /
COPY --from=builder /workspace/manager .
# copy channels
Expand All @@ -33,7 +33,7 @@ USER 65532:65532
ENTRYPOINT ["/manager"]


FROM busybox AS local-dev
FROM busybox as local-dev
WORKDIR /
COPY build/manager .
USER 65532:65532
Expand Down

0 comments on commit dcbb490

Please sign in to comment.