build error

Job failed with exit code: 1. Reason: cache miss: [builder 5/6] COPY . . cache miss: [stage-1 7/10] COPY --from=builder /app/package*.json ./ cache miss: [stage-1 5/10] RUN npm ci --only=production cache miss: [stage-1 4/10] COPY package*.json ./ cache miss: [stage-1 9/10] RUN mkdir -p /app/.ollama/models && chown -R node:node /app/.ollama cache miss: [stage-1 10/10] RUN echo '#!/bin/bash\nset -e\n\necho "=== Starting AI API Service with Ollama ==="\n\nollama serve &\nOLLAMA_PID=$!\necho "Ollama started with PID $OLLAMA_PID"\n\necho "Waiting for Ollama to be ready..."\nfor i in {1..30}; do\n if curl -s http://localhost:11434/api/tags > /dev/null 2>&1; then\n echo "Ollama is ready!"\n break\n fi\n echo "Waiting... ($i/30)"\n sleep 2\ndone\n\necho "Pulling Ollama model: $OLLAMA_MODEL"\nollama pull $OLLAMA_MODEL || echo "Warning: Model pull failed, will retry on first request"\n\nif [ "$OLLAMA_EMBEDDING_MODEL" != "$OLLAMA_MODEL" ]; then\n echo "Pulling embedding model: $OLLAMA_EMBEDDING_MODEL"\n ollama pull $OLLAMA_EMBEDDING_MODEL || echo "Warning: Embedding model pull failed"\nfi\n\necho "Warming up model..."\ntimeout 30s ollama run $OLLAMA_MODEL "Hi" > /dev/null 2>&1 || echo "Warmup completed"\n\necho "Starting AI API Service on port $PORT..."\necho "Available models: $(ollama list)"\n\nexec npx encore run --port=$PORT\n' > /app/start.sh && chmod +x /app/start.sh cache miss: [builder 6/6] RUN npm run build || echo "Build will happen on startup" cache miss: [stage-1 6/10] COPY --from=builder /app/backend ./backend cache miss: [builder 4/6] RUN npm ci cache miss: [builder 3/6] COPY package*.json ./ cache miss: [stage-1 8/10] RUN mkdir -p .encore {"total":22,"completed":14,"user_total":16,"user_cached":3,"user_completed":8,"user_cacheable":14,"from":2,"miss":11,"client_duration_ms":7814}

Build logs:

Fetching error logs...