Skip to content

Commit 4354de0

Browse files
committed
fix(build): remove syft and SBOM generation to fix build failure
1 parent f6e8371 commit 4354de0

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Dockerfile

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ FROM golang:latest AS builder
2626

2727
WORKDIR /build
2828

29-
# Install Syft for SBOM generation
30-
RUN go install github.com/anchore/syft/cmd/syft@latest
31-
3229
# Copy source code
3330
COPY . .
3431

@@ -38,10 +35,6 @@ RUN go mod tidy
3835
# Build the Go binary
3936
RUN 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
4639
RUN 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
6356
COPY --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
6959
COPY ./views ./views/
7060
COPY ./public ./public/

0 commit comments

Comments
 (0)