mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
13 lines
380 B
Docker
13 lines
380 B
Docker
FROM golang:bullseye as builder
|
|
|
|
WORKDIR /build
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 go build -a -o trufflehog main.go
|
|
|
|
FROM alpine:3.15
|
|
RUN apk add --no-cache git
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
COPY --from=builder /build/trufflehog /usr/bin/trufflehog
|
|
ENTRYPOINT ["/usr/bin/trufflehog"]
|