Skip to content

[bug]: Docker Build Fails Due to Read-Only File System on yarn install #6899

@meyyy03

Description

@meyyy03

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

I'm trying to set up the development environment using Docker as described in the docker-compose-local.yml. However, the build process fails during the web service build at the yarn install step with the following error:

error Error: EROFS: read-only file system, unlink '/tmp/.yarn-cache/...'
It appears that the yarn install process is attempting to cache to /tmp/.yarn-cache, which is mounted as read-only during the build process (possibly due to BuildKit). I tried setting YARN_CACHE_FOLDER=/tmp/.yarn-cache, but that didn’t solve the issue.

Steps to reproduce

1/ Clone the repository.
2/ Run docker compose -f docker-compose-local.yml up --build.
3/ Observe the build failure at the web service step.

Environment

Production

Browser

Safari

Variant

Local

Version

Docker: 24.0.7 Docker Compose: v2.21.0 Node: 16.x (in container) Yarn: v1.22.22

Metadata

Metadata

Assignees

Labels

🐛bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions