nextjs 14 Docker build failed

juampymddHOBBY

a year ago

Dockerfile:20

18 | ENV NIXPACKSPATH /app/nodemodules/.bin:$NIXPACKS_PATH

19 | COPY . /app/.

20 | >>> RUN --mount=type=cache,id=s/1aeab3d3-c22d-4f46-a26d-3ac0a47caed4-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile

21 |

22 | # build phase

ERROR: failed to solve: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complete successfully: exit code: 1

Error: Docker build failed

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

3 Replies


juampymddHOBBY

a year ago

here we go

Attachments


a year ago

Set a packageManager field in your package.json to pnpm@latest