FROM node:20-bookworm-slim # Essentials for CI steps RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends ca-certificates curl git jq; \ rm -rf /var/lib/apt/lists/* # Install a recent podman-remote (static binary), and alias it as "podman" ARG PODMAN_REMOTE_VERSION=5.2.3 RUN set -eux; \ arch="$(dpkg --print-architecture)"; case "$arch" in \ amd64) goarch=amd64;; arm64) goarch=arm64;; \ *) echo "unsupported arch: $arch"; exit 1;; \ esac; \ curl -fsSL -o /tmp/podman-remote.tgz \ "https://github.com/containers/podman/releases/download/v${PODMAN_REMOTE_VERSION}/podman-remote-static-linux_${goarch}.tar.gz"; \ tar -C /usr/local/bin -xzf /tmp/podman-remote.tgz podman-remote; \ ln -s /usr/local/bin/podman-remote /usr/local/bin/podman; \ /usr/local/bin/podman --version # Defaults that make the client talk to your host’s rootless socket ENV XDG_RUNTIME_DIR=/run/user/999 ENV CONTAINER_HOST=unix:///run/user/999/podman/podman.sock