Skip to content

Commit

Permalink
Merge pull request #2 from RahulVivekNair/add-arm64
Browse files Browse the repository at this point in the history
Added arm64 package to trufflehog dockerfile
  • Loading branch information
rs-loves-bugs authored Mar 4, 2023
2 parents f49245b + 9c04a1b commit 00301e6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Dockerfile.trufflehog
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@ FROM python:3.11-alpine
RUN apk add --no-cache bash git wget openssh-client ca-certificates \
&& rm -rf /var/cache/apk/* && \
update-ca-certificates
RUN wget https://github.com/trufflesecurity/trufflehog/releases/download/v3.28.5/trufflehog_3.28.5_linux_amd64.tar.gz -O /tmp/trufflehog.tar.gz && cd /tmp && tar zxf trufflehog.tar.gz && mv trufflehog /usr/bin && rm trufflehog.tar.gz LICENSE README.md
RUN if [ $(uname -m) = "x86_64" ]; then \
wget https://github.com/trufflesecurity/trufflehog/releases/download/v3.28.5/trufflehog_3.28.5_linux_amd64.tar.gz -O /tmp/trufflehog.tar.gz \
; elif [ $(uname -m) = "aarch64" ]; then \
wget https://github.com/trufflesecurity/trufflehog/releases/download/v3.28.5/trufflehog_3.28.5_linux_arm64.tar.gz -O /tmp/trufflehog.tar.gz \
; else \
echo "Unsupported architecture" && exit 1 \
; fi \
&& cd /tmp \
&& tar zxf trufflehog.tar.gz \
&& mv trufflehog /usr/bin \
&& rm trufflehog.tar.gz LICENSE README.md
COPY ./requirements.txt /app/requirements.txt
WORKDIR /app
RUN chmod +x /usr/bin/trufflehog
Expand Down

0 comments on commit 00301e6

Please sign in to comment.