drone-syft/Dockerfile
Pierre-Olivier Mercier 40349d7573
Some checks are pending
continuous-integration/drone/push Build is running
Initial commit
2026-03-15 11:59:55 +07:00

12 lines
232 B
Docker

FROM golang:1-alpine AS builder
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o /bin/plugin .
FROM anchore/syft
COPY --from=builder /bin/plugin /bin/plugin
ENTRYPOINT ["/bin/plugin"]