forked from metal3-io/baremetal-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move Dockerfile to its kubebuilder location
Replace build/Dockerfile with a symlink because we still have CI jobs and quay.io configurations using the file from that location. Signed-off-by: Doug Hellmann <dhellmann@redhat.com>
- Loading branch information
Showing
2 changed files
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM registry.hub.docker.com/library/golang:1.14 AS builder | ||
WORKDIR /go/src/github.com/metal3-io/baremetal-operator | ||
COPY . . | ||
RUN make build | ||
|
||
# Copy the controller-manager into a thin image | ||
# BMO has a dependency preventing us to use the static one, | ||
# using the base one instead | ||
FROM gcr.io/distroless/base:latest | ||
WORKDIR / | ||
COPY --from=builder /go/src/github.com/metal3-io/baremetal-operator/build/_output/bin/baremetal-operator / | ||
USER nobody | ||
|
||
LABEL io.k8s.display-name="Metal3 BareMetal Operator" \ | ||
io.k8s.description="This is the image for the Metal3 BareMetal Operator." |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../Dockerfile |