Skip to content

Commit

Permalink
fix(image_build): fix for building from root directory through github…
Browse files Browse the repository at this point in the history
… action
  • Loading branch information
drochow committed Nov 15, 2024
1 parent 2d2aebe commit bff1045
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scanner/k8s-assets/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.23.3 AS builder

WORKDIR /go/src/github.com/cloudoperators/heureka/scanner/k8s-assets

ADD . .
ADD ./scanner/k8s-assets .
RUN CGO_ENABLED=0 go build -o /go/bin/heureka-scanner-k8s-assets main.go

FROM --platform=${BUILDPLATFORM:-linux/amd64} gcr.io/distroless/static-debian12:nonroot
Expand Down
2 changes: 1 addition & 1 deletion scanner/keppel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.23.3 AS builder

WORKDIR /go/src/github.com/cloudoperators/heureka/scanner/keppel

ADD . .
ADD ./scanner/keppel .
RUN CGO_ENABLED=0 go build -o /go/bin/heureka-scanner-keppel main.go

FROM --platform=${BUILDPLATFORM:-linux/amd64} gcr.io/distroless/static-debian12:nonroot
Expand Down
2 changes: 1 addition & 1 deletion scanner/nvd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.23.3 AS builder

WORKDIR /go/src/github.com/cloudoperators/heureka/scanner/nvd

ADD . .
ADD ./scanner/nvd .
RUN CGO_ENABLED=0 go build -o /go/bin/heureka-scanner-nvd main.go

FROM --platform=${BUILDPLATFORM:-linux/amd64} gcr.io/distroless/static-debian12:nonroot
Expand Down

0 comments on commit bff1045

Please sign in to comment.