Skip to content

chore: migrate frontend Dockerfile from yarn to pnpm - #621

Open
Shitanshukumar607 wants to merge 1 commit into
abi:mainfrom
Shitanshukumar607:fix/dockerfile
Open

chore: migrate frontend Dockerfile from yarn to pnpm#621
Shitanshukumar607 wants to merge 1 commit into
abi:mainfrom
Shitanshukumar607:fix/dockerfile

Conversation

@Shitanshukumar607

Copy link
Copy Markdown

Running docker compose up -d --build failed during the frontend build step:
target frontend: failed to solve: failed to compute cache key: ... "/yarn.lock": not found

This occurred because frontend/Dockerfile was referencing yarn.lock and yarn install, whereas the repository has migrated to pnpm (pnpm-lock.yaml).

Fix

  • Enabled Corepack in frontend/Dockerfile for native pnpm support.
  • Replaced yarn.lock with pnpm-lock.yaml in the COPY instruction.
  • Updated yarn install and yarn dev to pnpm install and pnpm dev --host 0.0.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant