Skip to content

Commit

Permalink
cdi-device-injector: fix Dockerfile to build.
Browse files Browse the repository at this point in the history
Need to copy pkg/topology for docker builds, regardless of whether
the plugin uses it or not (since there is a reference to it in our
common go.mod).

Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub committed Jul 12, 2024
1 parent 8335a81 commit a901b95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/plugins/cdi-device-injector/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ WORKDIR /go/builder

# Fetch go dependencies in a separate layer for caching
COPY go.mod go.sum ./
COPY pkg/topology/ pkg/topology/
RUN go mod download

# Build the nri-cdi-device-injector plugin.
Expand Down

0 comments on commit a901b95

Please sign in to comment.