> [stage-0 8/10] RUN --mount=type=cache,id=s/c9969c3c-7588-4025-8b46-207ea0e007f3-next/cache,target=/app/.next/cache --mount=type=cache,id=s/c9969c3c-7588-4025-8b46-207ea0e007f3-node_modules/cache,target=/app/node_modules/.cache npm run build:
0.768 You are using Node.js 16.18.1. For Next.js, Node.js version >= v18.17.0 is required.
-----
Dockerfile:24
-------------------
22 | # build phase
23 | COPY . /app/.
24 | >>> RUN --mount=type=cache,id=s/c9969c3c-7588-4025-8b46-207ea0e007f3-next/cache,target=/app/.next/cache --mount=type=cache,id=s/c9969c3c-7588-4025-8b46-207ea0e007f3-node_modules/cache,target=/app/node_modules/.cache npm run build
25 |
26 |
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 1
Error: Docker build failed
> [stage-0 8/10] RUN --mount=type=cache,id=s/c9969c3c-7588-4025-8b46-207ea0e007f3-next/cache,target=/app/.next/cache --mount=type=cache,id=s/c9969c3c-7588-4025-8b46-207ea0e007f3-node_modules/cache,target=/app/node_modules/.cache npm run build:
0.768 You are using Node.js 16.18.1. For Next.js, Node.js version >= v18.17.0 is required.
-----
Dockerfile:24
-------------------
22 | # build phase
23 | COPY . /app/.
24 | >>> RUN --mount=type=cache,id=s/c9969c3c-7588-4025-8b46-207ea0e007f3-next/cache,target=/app/.next/cache --mount=type=cache,id=s/c9969c3c-7588-4025-8b46-207ea0e007f3-node_modules/cache,target=/app/node_modules/.cache npm run build
25 |
26 |
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 1
That seemed to get it past that issue though now I am running into a nope version compatability, Next.js requires at least version >= 18 and looks like 16.18.1 is whats avaialble?
#12 0.757 > next build
#12 0.757
#12 0.847 You are using Node.js 16.18.1. For Next.js, Node.js version >= v18.17.0 is required.
#12 ERROR: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 1
-----
> [stage-0 8/10] RUN --mount=type=cache,id=s/c9969c3c-7588-4025-8b46-207ea0e007f3-next/cache,target=/app/.next/cache --mount=type=cache,id=s/c9969c3c-7588-4025-8b46-207ea0e007f3-node_modules/cache,target=/app/node_modules/.cache npm run build:
0.743 npm WARN config production Use `--omit=dev` instead.
0.847 You are using Node.js 16.18.1. For Next.js, Node.js version >= v18.17.0 is required.
-----
Dockerfile:24
-------------------
22 | # build phase
23 | COPY . /app/.
24 | >>> RUN --mount=type=cache,id=s/c9969c3c-7588-4025-8b46-207ea0e007f3-next/cache,target=/app/.next/cache --mount=type=cache,id=s/c9969c3c-7588-4025-8b46-207ea0e007f3-node_modules/cache,target=/app/node_modules/.cache npm run build
25 |
26 |
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 1
Error: Docker build failed
#12 0.757 > next build
#12 0.757
#12 0.847 You are using Node.js 16.18.1. For Next.js, Node.js version >= v18.17.0 is required.
#12 ERROR: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 1
-----
> [stage-0 8/10] RUN --mount=type=cache,id=s/c9969c3c-7588-4025-8b46-207ea0e007f3-next/cache,target=/app/.next/cache --mount=type=cache,id=s/c9969c3c-7588-4025-8b46-207ea0e007f3-node_modules/cache,target=/app/node_modules/.cache npm run build:
0.743 npm WARN config production Use `--omit=dev` instead.
0.847 You are using Node.js 16.18.1. For Next.js, Node.js version >= v18.17.0 is required.
-----
Dockerfile:24
-------------------
22 | # build phase
23 | COPY . /app/.
24 | >>> RUN --mount=type=cache,id=s/c9969c3c-7588-4025-8b46-207ea0e007f3-next/cache,target=/app/.next/cache --mount=type=cache,id=s/c9969c3c-7588-4025-8b46-207ea0e007f3-node_modules/cache,target=/app/node_modules/.cache npm run build
25 |
26 |
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 1
Looks like discord auto corrected the error and turned it into an unamused emoji. I believe it is supposed to be ENV=$ but there is an added space before the assignment operator