Skip to content

Docker build fails due to missing Yarn – fixed with corepack enable && corepack install -g yarn #133

@vilanell000

Description

@vilanell000

When building the development environment using the instructions from the documentation,
docker compose up --watch
the Docker build fails with:
failed to solve: process "/bin/sh -c wget -O- https://deb.nodesource.com/setup_22.x | bash - apt update && apt install --no-install-recommends -y git vim nodejs sassc && apt-get clean && rm -rf /var/lib/apt/lists/* && ln -s /usr/bin/yarnpkg /usr/bin/yarn && ln -s /usr/bin/sassc /usr/bin/sass" did not complete successfully: exit code: 126

So,I modified the Dockerfile and broke the single RUN command into more, failds with:
failed to solve: process "/bin/sh -c yarn install:force" did not complete successfully: exit code: 127

after edit the file a few times, I fixed it after enable Corepack to install Yarn.

the difference between modification : https://www.diffchecker.com/5IVRYTiO/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions