4 months ago
✕ [frontend-builder 6/6] RUN npm run build || cat build-fail.log
process "/bin/sh -c npm run build || cat build-fail.log" did not complete successfully: exit code: 1
Mar 21 01:05:24
✕ [stage-1 5/8] RUN pip install --no-cache-dir -r requirements.txt
process "/bin/sh -c pip install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 137: context canceled: context canceled
Mar 21 01:05:24
Dockerfile:8
Mar 21 01:05:24
-------------------
Mar 21 01:05:24
6 |
Mar 21 01:05:24
7 | COPY frontend/ ./
Mar 21 01:05:24
8 | >>> RUN npm run build || cat build-fail.log
Mar 21 01:05:24
9 |
Mar 21 01:05:24
10 | FROM python:3.9-slim
Mar 21 01:05:24
-------------------
Mar 21 01:05:24
ERROR: failed to solve: process "/bin/sh -c npm run build || cat build-fail.log" did not complete successfully: exit code: 1
1 Replies
4 months ago
Hello,
Have you checked your build logs for errors?
From your build logs -
TypeError: crypto$2.getRandomValues is not a function
at resolveConfig (file:///app/node_modules/vite/dist/node/chunks/dep-B0fRCRkQ.js:54251:16)
at async createBuilder (file:///app/node_modules/vite/dist/node/chunks/dep-B0fRCRkQ.js:51949:18)
at async CAC.<anonymous> (file:///app/node_modules/vite/dist/node/cli.js:859:23)
Best,
Brody
Status changed to Awaiting User Response railway[bot] • 4 months ago