change to rootful container
This commit is contained in:
parent
eed1526297
commit
d5a548bb06
10
Dockerfile
10
Dockerfile
|
@ -1,7 +1,10 @@
|
|||
FROM docker:20.10.23-dind-rootless
|
||||
FROM docker:20.10.23-dind
|
||||
|
||||
# Cannot use a rootless container due to permissions errors writing to the
|
||||
# workspace
|
||||
|
||||
# This is an alpine-based image
|
||||
|
||||
USER root
|
||||
RUN true && \
|
||||
apk add --no-cache curl && \
|
||||
apkArch="$(arch)" && \
|
||||
|
@ -9,11 +12,8 @@ RUN true && \
|
|||
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 && \
|
||||
addgroup -g 998 docker && \
|
||||
addgroup rootless docker && \
|
||||
true
|
||||
|
||||
COPY entrypoint.sh /
|
||||
|
||||
USER rootless
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
|
Loading…
Reference in New Issue
Block a user