a year ago
A few days ago all our builds started to fail, even if I go back to the latest deployed (working) commit.
Dockerfile:20
18 | ENV NIXPACKSPATH /app/nodemodules/.bin:$NIXPACKS_PATH
19 | COPY . /app/.
20 | >>> RUN --mount=type=cache,id=s/b569dfe3-71f4-49af-b273-837ad22eff7d-/root/npm,target=/root/.npm npm ci
21 |
22 | # build phase
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm ci" did not complete successfully: exit code: 1
Error: Docker build failed
ⓘ Deployment information is only viewable by project members and Railway employees.
3 Replies
a year ago
Fixed it adding a restriction on the node version. It was using v22 when deploying (which works locally). But it works with node 20."engines": {
"node": ">=18 <22.0.0"
}
Status changed to Solved Railway • over 1 year ago