File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,6 @@ FROM golang:latest AS builder
2626
2727WORKDIR /build
2828
29- # Install Syft for SBOM generation
30- RUN go install github.com/anchore/syft/cmd/syft@latest
31-
3229# Copy source code
3330COPY . .
3431
@@ -38,10 +35,6 @@ RUN go mod tidy
3835# Build the Go binary
3936RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags "-linkmode external -extldflags -static" -a -installsuffix cgo -o main_linux_amd64.bin main.go
4037
41- # Generate SBOM for the application
42- # This scans the built binary and vendor dependencies
43- RUN /go/bin/syft packages . -o spdx-json=sbom.spdx.json
44-
4538# Generate a checksum for the binary
4639RUN sha256sum main_linux_amd64.bin > main_linux_amd64.bin.sha256sum
4740
@@ -62,9 +55,6 @@ RUN apk add --no-cache ffmpeg bash
6255# Copy the application binary from the builder stage
6356COPY --from=builder /build/main_linux_amd64.bin ./main.bin
6457
65- # Copy the SBOM from the builder stage
66- COPY --from=builder /build/sbom.spdx.json /app/sbom.spdx.json
67-
6858# Copy other necessary application files
6959COPY ./views ./views/
7060COPY ./public ./public/
You can’t perform that action at this time.
0 commit comments