Files
go-test-sarif/Dockerfile

11 lines
267 B
Docker

FROM golang:1.24-alpine AS build
WORKDIR /app
COPY . .
RUN go build -o /go-test-sarif ./cmd/main.go
FROM alpine:3.21.3
COPY --from=build /go-test-sarif /go-test-sarif
COPY action/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]