chore(): Moving image with a rootless docker in docker image
This commit is contained in:
parent
7903c72c0f
commit
3d40a3a1b0
1 changed files with 6 additions and 3 deletions
|
@ -1,8 +1,10 @@
|
||||||
FROM alpine:latest
|
FROM docker:dind-rootless
|
||||||
MAINTAINER Elia El Lazkani <git@lazkani.io>
|
MAINTAINER Elia El Lazkani <git@lazkani.io>
|
||||||
|
|
||||||
ARG ORAS_VERSION="1.0.0"
|
ARG ORAS_VERSION="1.0.0"
|
||||||
|
|
||||||
|
USER root
|
||||||
|
|
||||||
RUN apk add --virtual .build-deps curl && \
|
RUN apk add --virtual .build-deps curl && \
|
||||||
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/ && \
|
||||||
|
@ -16,5 +18,6 @@ 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
|
||||||
apk add containerd
|
|
||||||
|
USER rootless
|
||||||
|
|
Loading…
Reference in a new issue