17 lines
467 B
Docker
17 lines
467 B
Docker
FROM docker:20.10.23-dind-rootless
|
|
# This is an alpine-based image
|
|
|
|
USER root
|
|
RUN true && \
|
|
apk add --no-cache curl && \
|
|
apkArch="$(arch)" && \
|
|
if [ $apkArch = "x86_64" ]; then apkArch=amd64; fi && \
|
|
curl -sLO https://github.com/sigstore/rekor/releases/download/v1.0.1/rekor-cli-linux-${apkArch} && \
|
|
mv rekor-cli-linux-${apkArch} /usr/bin/rekor && \
|
|
chmod 755 /usr/bin/rekor
|
|
|
|
COPY entrypoint.sh /
|
|
|
|
USER rootless
|
|
ENTRYPOINT ["/entrypoint.sh"]
|