Podman unable to commit step

Hi, I’m trying to create a nix shell in a dockerfile but the build process fails after having consumed all free space on the server (around 30GB).

Dockerfile:

FROM nixos/nix #https://hub.docker.com/r/nixos/nix/

WORKDIR /apps/ihp

RUN nix-channel --update nixpkgs
RUN nix-env -iA cachix -f https://cachix.org/api/v1/install \
    && nix-env -iA nixpkgs.git \
    && nix-env --install direnv gnumake \
    && cachix use digitallyinduced

# create the nix-shell
RUN mkdir -p Config/nix/haskell-packages
RUN touch .gitignore
COPY nixpkgs-config.nix Config/nix/nixpkgs-config.nix
COPY default.nix .
RUN nix-shell

nixpkgs-config.nix

# See https://ihp.digitallyinduced.com/Guide/package-management.html
{ ihp, additionalNixpkgsOptions, ... }:
import "${toString ihp}/NixSupport/make-nixpkgs-from-options.nix" {
    ihp = ihp;
    haskellPackagesDir = ./haskell-packages/.;
    additionalNixpkgsOptions = additionalNixpkgsOptions;
}

default.nix

let
    ihp = builtins.fetchGit {
        url = "https://github.com/digitallyinduced/ihp.git";
        ref = "refs/tags/v1.0.1";
    };
    haskellEnv = import "${ihp}/NixSupport/default.nix" {
        ihp = ihp;
        haskellDeps = p: with p; [
            cabal-install
            base
            wai
            text
            hlint
            p.ihp
        ];
        otherDeps = p: with p; [
            # Native dependencies, e.g. imagemagick
        ];
        projectPath = ./.;
    };
in
    haskellEnv

OS: CentOS-9 stream
podman: v4.4.1

On the nix-shell step, I eventually get to

...
building '/nix/store/hl8ri4y6q2pzra83zvc0iakrn8k5pi1m-postgresql-and-plugins-13.7.drv'...
created 132 symlinks in user environment
COMMIT project_ihp
Error: committing container for step {Env:[USER=root PATH=/root/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin MANPATH=/root/.nix-profile/share/man:/nix/var/nix/profiles/default/share/man SSL_CERT_FILE=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt GIT_SSL_CAINFO=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt NIX_SSL_CERT_FILE=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt NIX_PATH=/nix/var/nix/profiles/per-user/root/channels:/root/.nix-defexpr/channels] Command:run Args:[nix-shell] Flags:[] Attrs:map[] Message:RUN nix-shell Original:RUN nix-shell}: copying layers and metadata for container "731f33e22c9999ad3d2e5bfb3eeaf415fc7a3c148c0f24b5bb4c8aaab29513c1": writing blob: adding layer with blob "sha256:e28a1e8cd6d2ba694c3d3c688cae59df5dec6255475c58456d57f01d5290737c": processing tar file(write /nix/store/p69wyp508fvxyvwy7j1mym2y7s7snm4g-generic-deriving-1.14.1/lib/ghc-9.2.4/x86_64-linux-ghc-9.2.4/generic-deriving-1.14.1-FyEJtVvKNHKHi1OFmVU4wy/libHSgeneric-deriving-1.14.1-FyEJtVvKNHKHi1OFmVU4wy.a: no space left on device): exit status 1

However, when I run the command in an interactive shell, it works as expected:

bash-5.1# nix-shell
...
created 132 symlinks in user environment
[nix-shell:/apps/ihp]#

Any idea what the issue could be?