-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
36 lines (29 loc) · 867 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM docker:27.1-cli
LABEL maintainer="Patrick Baber <[email protected]>"
ENV REGCLIENT_VERSION "0.7.0"
ARG TARGETARCH
# Install essentials
RUN apk add --no-cache \
bash \
curl \
gettext \
git \
jq \
openssh-client \
openssl \
rsync \
sshpass \
unzip \
wget
# Install regctl
RUN if [ "$TARGETARCH" = "arm64" ]; then ARCHITECTURE="linux-arm64"; else ARCHITECTURE="linux-amd64"; fi && \
wget https://github.com/regclient/regclient/releases/download/v${REGCLIENT_VERSION}/regctl-${ARCHITECTURE} && \
mv regctl-${ARCHITECTURE} /usr/local/bin/regctl && \
chmod +x /usr/local/bin/regctl
# Install Trivy
COPY --from=aquasec/trivy:0.50.1 /usr/local/bin/trivy /usr/local/bin/trivy
RUN chmod +x /usr/local/bin/trivy
# copy ci script
ADD ./ci.sh /usr/local/bin/ci
RUN chmod a+x /usr/local/bin/ci
ENTRYPOINT []