fix(lint): docker user

This commit is contained in:
2025-03-24 01:26:02 +02:00
parent 6ed6d13cd0
commit 27ad843c77

View File

@@ -1,9 +1,13 @@
FROM golang:1.24-alpine AS build
RUN useradd -m appuser
USER appuser
WORKDIR /app
COPY . .
RUN go build -o /go-test-sarif ./cmd/main.go
FROM alpine:3.21.3
RUN useradd -m appuser
USER appuser
COPY --from=build /go-test-sarif /go-test-sarif
COPY action/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh