Add user to Containerfile + configure user
ci/woodpecker/push/build Pipeline failed Details

This commit is contained in:
Kevin Dorner 2022-05-18 03:18:54 +02:00
parent ea48b866cc
commit 8e97edde1d
1 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,15 @@
FROM docker.io/alpine:edge FROM docker.io/alpine:edge
RUN apk add --no-cache buildah RUN apk add --no-cache buildah
RUN adduser build; \
echo "build:100000:65536" | tee /etc/subuid > /etc/subgid; \
mkdir -p /home/build/.local/share/containers; \
chown -R build:build /home/build
# Use chroot isolation to avoid unshare call # Use chroot isolation
ENV BUILDAH_ISOLATION=chroot ENV BUILDAH_ISOLATION=chroot
USER build
WORKDIR /home/build