Skip to content

Commit 2eb89af

Browse files
Ajit Pratap Singhclaude
authored andcommitted
fix: add USER directive to Dockerfile for Trivy DS002 compliance
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7ca71ed commit 2eb89af

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /gosqlx-mcp ./cmd/gosq
99
# Stage 2: Runtime
1010
FROM gcr.io/distroless/static:nonroot
1111
COPY --from=builder /gosqlx-mcp /gosqlx-mcp
12+
USER nonroot:nonroot
1213
EXPOSE 8080
1314
ENTRYPOINT ["/gosqlx-mcp"]

0 commit comments

Comments
 (0)