build error
Job failed with exit code: 1. Reason: der 2/10] WORKDIR /build-ui cache miss: [builder 5/9] COPY requirements.txt /tmp/ cache miss: [builder 6/9] RUN --mount=type=cache,target=/root/.cache/pip pip install --prefer-binary -r /tmp/requirements.txt cache miss: [stage-2 7/14] COPY alembic/ ./alembic/ cache miss: [builder 2/9] RUN apt-get update && apt-get install -y --no-install-recommends build-essential && rm -rf /var/lib/apt/lists/* cache miss: [stage-2 4/14] WORKDIR /app cache miss: [frontend-builder 9/10] RUN pnpm run build cache miss: [stage-2 8/14] COPY app/ ./app/ cache miss: [stage-2 5/14] RUN mkdir -p /app/data/.cache /app/data/veritas_index /app/logs /var/log/supervisor && chown -R 1000:1000 /app /var/log/supervisor cache miss: [builder 3/9] RUN python -m venv /opt/venv cache miss: [stage-2 9/14] COPY --from=frontend-builder /build-ui/.next/standalone ./ cache miss: [stage-2 11/14] COPY --from=frontend-builder /build-ui/.next/static ./.next/static cache miss: [stage-2 3/14] COPY --from=builder /opt/venv /opt/venv cache miss: [builder 7/9] RUN python -m spacy download en_core_web_md cache miss: [frontend-builder 4/10] COPY package.json pnpm-lock.yaml* next.config.js tsconfig.json tailwind.config.ts ./ cache miss: [stage-2 12/14] RUN test -f /app/server.js || (echo "ERROR: server.js not found!" && exit 1) cache miss: [frontend-builder 5/10] RUN --mount=type=cache,target=/root/.local/share/pnpm/store pnpm install --no-frozen-lockfile cache miss: [stage-2 13/14] RUN printf '#!/bin/sh\necho "[FRONTEND] Starting at $(date)"\necho "[FRONTEND] CWD: $(pwd)"\necho "[FRONTEND] PORT: $PORT"\necho "[FRONTEND] HOSTNAME: $HOSTNAME"\necho "[FRONTEND] Files in /app:"\nls -la /app/\necho "[FRONTEND] Checking server.js:"\ntest -f /app/server.js && echo "server.js EXISTS" || echo "server.js MISSING!"\ncd /app\nexport PORT=7860\nexport HOSTNAME=0.0.0.0\nexport NODE_ENV=production\necho "[FRONTEND] Executing node server.js..."\nexec node server.js' > /app/start-frontend.sh && chmod +x /app/start-frontend.sh cache miss: [builder 8/9] RUN --mount=type=cache,target=/tmp/hf_cache python - <<EOF cache miss: [stage-2 6/14] COPY alembic.ini ./ cache miss: [stage-2 14/14] RUN printf '[supervisord]\nnodaemon=true\nuser=appuser\nlogfile=/var/log/supervisor/supervisord.log\n\n[program:backend]\ncommand=uvicorn app.main:app --host 0.0.0.0 --port 8000 --workers 1\nautostart=true\nautorestart=true\nstartsecs=0\nstdout_logfile=/app/logs/backend.log\nstderr_logfile=/app/logs/backend_error.log\n\n[program:frontend]\ncommand=/app/start-frontend.sh\ndirectory=/app\nautostart=true\nautorestart=true\nstartsecs=0\nstdout_logfile=/app/logs/frontend.log\nstderr_logfile=/app/logs/frontend_error.log\nredirect_stderr=true\n' > /etc/supervisor/conf.d/supervisord.conf && chown -R 1000:1000 /app /var/log/supervisor cache miss: [builder 9/9] RUN --mount=type=cache,target=/tmp/hf_cache mkdir -p /opt/venv/lib/python3.11/site-packages/sentence_transformers/.cache && cp -r /tmp/hf_cache/* /opt/venv/lib/python3.11/site-packages/sentence_transformers/.cache/ 2>/dev/null || true cache miss: [stage-2 10/14] COPY --from=frontend-builder /build-ui/public ./public cache miss: [builder 4/9] RUN pip install --upgrade pip cache miss: [frontend-builder 7/10] RUN mkdir -p ./public cache miss: [frontend-builder 6/10] COPY ./src ./src cache miss: [frontend-builder 8/10] COPY ./public ./public cache miss: [stage-2 2/14] RUN apt-get update && apt-get install -y --no-install-recommends curl supervisor net-tools && curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -y nodejs && rm -rf /var/lib/apt/lists/* && useradd -m -u 1000 appuser cache miss: [frontend-builder 10/10] RUN ls -la /build-ui/.next/standalone/ && test -f /build-ui/.next/standalone/server.js || (echo "ERROR: server.js not found!" && exit 1) cache miss: [frontend-builder 3/10] RUN corepack enable pnpm {"total":38,"completed":20,"user_total":32,"user_cached":0,"user_completed":14,"user_cacheable":30,"from":2,"miss":30,"client_duration_ms":28223}
Build logs:
Fetching error logs...