2 years ago
I've been having this issue since yesterday. I've tried everything, it seems the issue is from railway. Please I need a fix.
- UndefinedVar: Usage of undefined variable '$NIXPACKS_PATH' (line 18)
Jul 27 17:02:40
LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 18)
Jul 27 17:02:40
Jul 27 17:02:40
Dockerfile:24
Jul 27 17:02:40
-------------------
Jul 27 17:02:40
22 | # build phase
Jul 27 17:02:40
23 | COPY . /app/.
Jul 27 17:02:40
24 | >>> RUN --mount=type=cache,id=s/9afee07d-7fbe-4bb2-9b90-39ae81af038a-next/cache,target=/app/.next/cache --mount=type=cache,id=s/9afee07d-7fbe-4bb2-9b90-39ae81af038a-node_modules/cache,target=/app/node_modules/.cache npm run build
Jul 27 17:02:40
25 |
Jul 27 17:02:40
26 |
Jul 27 17:02:40
-------------------
Jul 27 17:02:40
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 1
Jul 27 17:02:40
Jul 27 17:02:40
Error: Docker build failed