Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG TOOL_VERSION=1.78.0
# Explicitly adding go.mod and go.sum avoids re-downloading dependencies on every build
# Go builds static binaries by default, -ldflags="-s -w" strips debug information and reduces the binary size

FROM golang:1.24-alpine3.22 as builder
FROM golang:1.24-alpine3.22 AS builder

WORKDIR /src

Expand All @@ -22,11 +22,11 @@ RUN go run ./cmd/docgen -docFolder /docs

# Semgrep official image used to copy the semgrep binary

FROM semgrep/semgrep:$TOOL_VERSION as semgrep-cli
FROM semgrep/semgrep:$TOOL_VERSION AS semgrep-cli

# Compress binaries for smaller image size

FROM alpine:3.21 as compressor
FROM alpine:3.21 AS compressor

RUN apk add --no-cache upx

Expand Down
2 changes: 1 addition & 1 deletion internal/tool/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func createCommandParameters(language string, configurationFile *os.File, filesT
"-rules", configurationFile.Name(),
"-max_target_bytes", "0",
"-timeout", "5",
"-timeout_threshold", "3",
"-timeout_threshold", "50",
"-error_recovery",
"-max_memory", "5000",
"-j", strconv.Itoa(runtime.NumCPU()),
Expand Down