mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
Add git to Dockerfiles
This commit is contained in:
parent
e8234c3514
commit
5e64488e32
2 changed files with 5 additions and 8 deletions
|
@ -5,8 +5,8 @@ WORKDIR /build
|
|||
RUN CGO_ENABLED=0 go build -a -o trufflehog main.go
|
||||
RUN mkdir /empty
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /empty /tmp
|
||||
FROM alpine
|
||||
RUN apk add 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"]
|
|
@ -1,8 +1,5 @@
|
|||
FROM golang:bullseye as builder
|
||||
RUN mkdir /empty
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /empty /tmp
|
||||
FROM alpine
|
||||
RUN apk add git
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
COPY trufflehog /usr/bin/trufflehog
|
||||
COPY --from=builder /build/trufflehog /usr/bin/trufflehog
|
||||
ENTRYPOINT ["/usr/bin/trufflehog"]
|
Loading…
Reference in a new issue