Adding this to help others who run into the same issue.
When using npm install before building your images, you might encounter the following issue:
ERROR: failed to solve: process "/bin/sh -c set -ex && yarn install --production --prefer-offline --frozen-lockfile --cache-folder /tmp/.yarn_cache" did not complete successfully: exit code: 1
You can solve this by pruning the volume storing the local cache state called buildx_buildkit_nitric0_state or similar. This can be done using:
docker volume ls (to find the volume to remove)
docker volume rm buildx_buildkit_nitric0_state
Adding this to help others who run into the same issue.
When using
npm install
before building your images, you might encounter the following issue:You can solve this by pruning the volume storing the local cache state called
buildx_buildkit_nitric0_state
or similar. This can be done using: