mirror of
https://github.com/ivuorinen/go-test-sarif.git
synced 2026-01-26 03:04:09 +00:00
fix(lint): docker user
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user