Skip to content

Commit

Permalink
move Dockerfile to its kubebuilder location
Browse files Browse the repository at this point in the history
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
dhellmann committed Sep 27, 2020
1 parent c1e7fa4 commit a30c3c0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
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."
15 changes: 0 additions & 15 deletions build/Dockerfile

This file was deleted.

1 change: 1 addition & 0 deletions build/Dockerfile

0 comments on commit a30c3c0

Please sign in to comment.