flow icon indicating copy to clipboard operation
flow copied to clipboard

Upgrade Node.js version to 18 in Dockerfile to fix failing image build

Open metalglove opened this issue 1 month ago • 1 comments

Updated Node.js version from 16 to 18 in all stages of the Dockerfile to fix corepack error. As node:16-alpine did not include corepack by default. Starting from node:18-alpine corepack is included.

To solve the following docker image build error:

docker-compose up -d
...
=> CACHED [installer  7/13] COPY --from=builder /app/out/pnpm-*.yaml .                                          0.0s
=> ERROR [installer  8/13] RUN corepack enable                                                                  0.2s
------
 > [installer  8/13] RUN corepack enable:
------
Dockerfile:24

--------------------

  22 |     COPY --from=builder /app/out/json/ .

  23 |     COPY --from=builder /app/out/pnpm-*.yaml .

  24 | >>> RUN corepack enable

  25 |     RUN pnpm i --frozen-lockfile

  26 |

--------------------

failed to solve: process "/bin/sh -c corepack enable" did not complete successfully: exit code: 127

metalglove avatar Nov 11 '25 13:11 metalglove

@metalglove is attempting to deploy a commit to the pacexy Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Nov 11 '25 13:11 vercel[bot]