add rpm2cpio as dependency to dockerfile (#1985)

* add rpm2cpio as dependency to dockerfile

* add dep
This commit is contained in:
ahrav 2023-10-24 19:39:18 -07:00 committed by GitHub
parent 3df219312c
commit e2dccc4799
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ RUN --mount=type=cache,target=/go/pkg/mod \
GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o trufflehog .
FROM alpine:3.18
RUN apk add --no-cache bash git openssh-client ca-certificates \
RUN apk add --no-cache bash git openssh-client ca-certificates rpm2cpio \
&& rm -rf /var/cache/apk/* && update-ca-certificates
COPY --from=builder /build/trufflehog /usr/bin/trufflehog
COPY entrypoint.sh /etc/entrypoint.sh

View file

@ -1,6 +1,6 @@
FROM alpine:3.18
RUN apk add --no-cache bash git openssh-client ca-certificates \
RUN apk add --no-cache bash git openssh-client ca-certificates rpm2cpio \
&& rm -rf /var/cache/apk/* && update-ca-certificates
WORKDIR /usr/bin/
COPY trufflehog .