action-hsm-sign/Dockerfile

20 lines
537 B
Docker
Raw Permalink Normal View History

2023-03-28 05:14:05 +00:00
FROM docker:20.10.23-dind
# Cannot use a rootless container due to permissions errors writing to the
# workspace
2023-03-28 04:01:32 +00:00
# This is an alpine-based image
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 && \
true
2023-03-28 04:01:32 +00:00
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]