chore(): Upgrades alpine while at it
This commit is contained in:
parent
62a22dec12
commit
ee91229c8f
1 changed files with 3 additions and 2 deletions
|
@ -3,7 +3,7 @@ MAINTAINER Elia El Lazkani <git@lazkani.io>
|
||||||
|
|
||||||
COPY scripts/* /usr/local/bin/
|
COPY scripts/* /usr/local/bin/
|
||||||
|
|
||||||
RUN apk add --virtual .build-deps curl && \
|
RUN apk update && apk upgrade && apk add --virtual .build-deps curl && \
|
||||||
export ORAS_VERSION=$(wget -qO - "https://api.github.com/repos/oras-project/oras/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') && \
|
export ORAS_VERSION=$(wget -qO - "https://api.github.com/repos/oras-project/oras/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') && \
|
||||||
curl -LO "https://github.com/oras-project/oras/releases/download/v${ORAS_VERSION}/oras_${ORAS_VERSION}_linux_amd64.tar.gz" && \
|
curl -LO "https://github.com/oras-project/oras/releases/download/v${ORAS_VERSION}/oras_${ORAS_VERSION}_linux_amd64.tar.gz" && \
|
||||||
mkdir -p oras-install/ && \
|
mkdir -p oras-install/ && \
|
||||||
|
@ -17,4 +17,5 @@ RUN apk add --virtual .build-deps curl && \
|
||||||
tar -zxf trivy_${TRIVY_VERSION}_*.tar.gz -C trivy-install/ && \
|
tar -zxf trivy_${TRIVY_VERSION}_*.tar.gz -C trivy-install/ && \
|
||||||
mv trivy-install /opt/trivy && \
|
mv trivy-install /opt/trivy && \
|
||||||
ln -s /opt/trivy/trivy /usr/local/bin/trivy && \
|
ln -s /opt/trivy/trivy /usr/local/bin/trivy && \
|
||||||
apk del .build-deps
|
apk del .build-deps && \
|
||||||
|
rm -vrf /var/cache/apk/*
|
||||||
|
|
Loading…
Reference in a new issue