Skip to content

Commit

Permalink
fix(image_build): fixed adding of source to build image (#383)
Browse files Browse the repository at this point in the history
* fix(issue_match): removed severity resolver

* ci(k8s-assets): update values.yaml

* ci(k8s-assets): update cronjob.yaml

* fix(image_build):  moved dockerfiles to subdirectories

* fix(image_build): fixed adding of source to build image
  • Loading branch information
drochow authored Nov 15, 2024
1 parent 64fd662 commit 261962d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion scanner/k8s-assets/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.23.3 AS builder

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

ADD . .
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
3 changes: 1 addition & 2 deletions scanner/keppel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.23.3 AS builder

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

# Uncomment when scanner is available
ADD scanner/keppel .
ADD . .
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 . .
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 261962d

Please sign in to comment.