FROM docker.io/mgoltzsche/podman:5.4-minimal RUN apk add --update --no-cache bash git nodejs python3 py3-pip ca-certificates RUN pip3 install pre-commit --break-system-packages # Ensure that this image recognizes the self-signed registry certificate. COPY registry.garrity.co.crt /usr/local/share/ca-certificates RUN update-ca-certificates # Prepare a directory for the podman user RUN mkdir /home/podman; chown -R podman:podman /home/podman # Switch to the build user. Everything else is done at this level. USER podman WORKDIR /home/podman # Make Git not complain. RUN git config --global init.defaultBranch main