fix dockerfiles

This commit is contained in:
Dustin Decker 2022-06-13 19:45:24 -07:00
parent 0570e0fea4
commit 2f006f5590
2 changed files with 1 additions and 2 deletions

View file

@ -7,7 +7,7 @@ COPY . .
RUN CGO_ENABLED=0 go build -a -o trufflehog main.go
FROM alpine:3.15
RUN apk add --no-cache git; mkdir /tmp
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"]

View file

@ -2,7 +2,6 @@ FROM alpine:3.15
RUN apk add --no-cache git
WORKDIR /usr/bin/
RUN mkdir /tmp
COPY trufflehog .
ENTRYPOINT ["/usr/bin/trufflehog"]