| ADD alpine-minirootfs-3.24.3-aarch64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| ARG USER_NAME=podman |
| ARG USER_UID=1000 |
| ARG USER_GID=1000 |
| ENV BUILDAH_ISOLATION=chroot |
| COPY containers.conf /etc/containers/containers.conf # buildkit |
| COPY storage.conf /etc/containers/storage.conf # buildkit |
| RUN |3 USER_NAME=podman USER_UID=1000 USER_GID=1000 /bin/sh -c set -eux; apk add --no-cache podman passt shadow-subids libcap-setcap ca-certificates; chmod u-s /usr/bin/newuidmap /usr/bin/newgidmap; setcap cap_setuid+ep /usr/bin/newuidmap; setcap cap_setgid+ep /usr/bin/newgidmap; addgroup -g "$USER_GID" "$USER_NAME"; adduser -D -u "$USER_UID" -G "$USER_NAME" -h "/home/$USER_NAME" "$USER_NAME" # buildkit |
| RUN |3 USER_NAME=podman USER_UID=1000 USER_GID=1000 /bin/sh -c set -eux; touch /etc/subuid /etc/subgid; echo "$USER_NAME:$((USER_UID+1)):64535" >> /etc/subuid; echo "$USER_NAME:$((USER_GID+1)):64535" >> /etc/subgid # buildkit |
| USER podman |
| WORKDIR /home/podman |