-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
caf8a47
commit f5cf866
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
FROM docker:20.10-cli | ||
LABEL maintainer="Patrick Baber <[email protected]>" | ||
|
||
ENV REGCLIENT_VERSION "0.4.7" | ||
|
||
ARG TARGETARCH | ||
|
||
# Install essentials | ||
RUN apk add --no-cache \ | ||
bash \ | ||
|
@@ -15,6 +19,11 @@ RUN apk add --no-cache \ | |
unzip \ | ||
wget | ||
|
||
# Install regctl | ||
RUN if [ "$TARGETARCH" = "arm64" ]; then ARCHITECTURE="linux-arm64"; else ARCHITECTURE="linux-amd64"; fi && \ | ||
curl -o /usr/local/bin/regctl https://github.com/regclient/regclient/releases/download/v${REGCLIENT_VERSION}/regctl-${ARCHITECTURE} && \ | ||
chmod +x /usr/local/bin/regctl | ||
|
||
# Install Trivy | ||
COPY --from=aquasec/trivy:0.35.0 /usr/local/bin/trivy /usr/local/bin/trivy | ||
RUN chmod +x /usr/local/bin/trivy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters