fix(gro-1889): bake pnpm into reset stage to avoid runtime DNS
The reset CronJob fails with `getaddrinfo EAI_AGAIN registry.npmjs.org` when cluster DNS is flaky, because the reset stage uses corepack to download pnpm at runtime instead of having it baked into the image. This change adds `corepack enable && corepack prepare pnpm@9.15.4 --activate` to the reset Dockerfile stage so pnpm is pre-installed at build time. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -50,4 +50,5 @@ CMD ["pnpm", "--filter", "@groombook/db", "seed"]
|
|||||||
|
|
||||||
# Reset stage — drops all tables, re-runs migrations, and re-seeds
|
# Reset stage — drops all tables, re-runs migrations, and re-seeds
|
||||||
FROM builder AS reset
|
FROM builder AS reset
|
||||||
|
RUN corepack enable && corepack prepare pnpm@9.15.4 --activate
|
||||||
CMD ["pnpm", "--filter", "@groombook/db", "reset"]
|
CMD ["pnpm", "--filter", "@groombook/db", "reset"]
|
||||||
|
|||||||
Reference in New Issue
Block a user