Deploy NextJs Issue
Hi, I justy start to use dokploy to deploy nextjs application.
I encounter a problem.
My Frontend Nextjs project use PNPM and when I click the deploy button, it meets failure.
Can you help me debug this error?
Error Message
#10 [stage-0 6/10] RUN --mount=type=cache,id=oTFgebIbq8s-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile
#10 0.668 WARN Ignoring not compatible lockfile at /app/pnpm-lock.yaml
#10 0.672 ERR_PNPM_NO_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent
#10 0.672
#10 0.672 Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"
#10 ERROR: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complete successfully: exit code: 1
------
0.672 ERR_PNPM_NO_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent
0.672
0.672 Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"
------
Dockerfile:20
--------------------
18 | ENV NIXPACKS_PATH /app/node_modules/.bin:$NIXPACKS_PATH
19 | COPY . /app/.
20 | >>> RUN --mount=type=cache,id=oTFgebIbq8s-/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
Error response from daemon: No such container: image-service-frontend-nextjs-7366b0-tJU7Rv4mFU
Error
I encounter a problem.
My Frontend Nextjs project use PNPM and when I click the deploy button, it meets failure.
Can you help me debug this error?
Error Message
#10 [stage-0 6/10] RUN --mount=type=cache,id=oTFgebIbq8s-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile
#10 0.668 WARN Ignoring not compatible lockfile at /app/pnpm-lock.yaml
#10 0.672 ERR_PNPM_NO_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent
#10 0.672
#10 0.672 Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"
#10 ERROR: process "/bin/bash -ol pipefail -c pnpm i --frozen-lockfile" did not complete successfully: exit code: 1
------
[stage-0 6/10] RUN --mount=type=cache,id=oTFgebIbq8s-/root/local/share/pnpm/store/v3,target=/root/.local/share/pnpm/store/v3 pnpm i --frozen-lockfile:0.668 WARN Ignoring not compatible lockfile at /app/pnpm-lock.yaml
0.672 ERR_PNPM_NO_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent
0.672
0.672 Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"
------
Dockerfile:20
--------------------
18 | ENV NIXPACKS_PATH /app/node_modules/.bin:$NIXPACKS_PATH
19 | COPY . /app/.
20 | >>> RUN --mount=type=cache,id=oTFgebIbq8s-/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
Error response from daemon: No such container: image-service-frontend-nextjs-7366b0-tJU7Rv4mFU
Error
