Skip to content

Commit ee7309a

Browse files
selzocaramprice
andcommitted
Support passing syft version to dockerfile
Signed-off-by: Aram Price <[email protected]> Co-authored-by: Aram Price <[email protected]>
1 parent e8f2940 commit ee7309a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ci/docker/os-image-stemcell-builder/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ LABEL maintainer="[email protected]"
77
ARG USER_ID=1000
88
ARG GROUP_ID=1000
99
ARG DEBIAN_FRONTEND=noninteractive # prevents s3cmd dpkg install asking TZ info
10+
ARG SYFT_VERSION
1011

1112
RUN \
1213
apt-get update \
@@ -53,6 +54,11 @@ RUN \
5354
xvfb \
5455
&& apt-get clean
5556

57+
# Install syft
58+
RUN curl -sL https://github.com/anchore/syft/releases/download/${SYFT_VERSION}/syft_${SYFT_VERSION#v}_linux_amd64.tar.gz \
59+
| tar -xz -C /usr/local/bin/ syft \
60+
&& chmod +x /usr/local/bin/syft
61+
5662
# Install yq
5763
RUN wget -O /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 \
5864
&& chmod +x /usr/local/bin/yq

0 commit comments

Comments
 (0)