diff --git a/Dockerfile b/Dockerfile index 0e7492ff5..cb910ff88 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/Dockerfile.goreleaser b/Dockerfile.goreleaser index ac7c9e4ca..e2834ec2e 100644 --- a/Dockerfile.goreleaser +++ b/Dockerfile.goreleaser @@ -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"]