Skip to content

Conversation

@metalglove
Copy link
Contributor

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

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` core pack is included.

To solve 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
```
@vercel
Copy link

vercel bot commented Nov 11, 2025

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

A member of the Team first needs to authorize it.

@pacexy pacexy merged commit 1105bef into pacexy:main Nov 25, 2025
0 of 2 checks passed
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.

2 participants