build error

Job failed with exit code: 1. Reason: cache miss: [stage-1 3/9] WORKDIR /app cache miss: [stage-1 9/9] RUN echo '#!/bin/bash\nset -e\nLOG_FILE=/home/ollama/startup.log\necho "Starting Ollama server at $(date)" >> $LOG_FILE\nollama serve >> $LOG_FILE 2>&1 &\nsleep 15\nMODELS_TO_PULL="${MODELS_TO_PULL:-hf.co/gguf-org/gemma-3-270m-gguf:Q5_K_S}"\necho "Pulling models: $MODELS_TO_PULL" | tee -a $LOG_FILE\nIFS=',' read -ra MODEL_ARRAY <<< "$MODELS_TO_PULL"\nfor model in "${MODEL_ARRAY[@]}"; do\n echo "Pulling model $model..." | tee -a $LOG_FILE\n for attempt in {1..3}; do\n if ollama pull "$model" >> $LOG_FILE 2>&1; then\n echo "Model $model pulled successfully" | tee -a $LOG_FILE\n break\n else\n echo "Attempt $attempt: Failed to pull model $model, retrying in 10 seconds..." | tee -a $LOG_FILE\n sleep 10\n fi\n if [ $attempt -eq 3 ]; then\n echo "Error: Failed to pull model $model after 3 attempts" | tee -a $LOG_FILE\n exit 1\n fi\n done\ndone\necho "Starting Gunicorn server at $(date)" | tee -a $LOG_FILE\nexec python3 -m gunicorn --bind 0.0.0.0:7860 --workers 1 --timeout 120 --log-level info app:app >> $LOG_FILE 2>&1' > /app/start.sh && chmod +x /app/start.sh cache miss: [stage-1 7/9] COPY . . cache miss: [stage-1 6/9] RUN pip install --no-cache-dir -r requirements.txt cache miss: [stage-1 5/9] COPY requirements.txt . cache miss: [stage-1 8/9] RUN chown -R ollama:ollama /app && chmod -R 755 /app cache miss: [stage-1 4/9] COPY --from=builder /usr/local/bin/ollama /usr/local/bin/ollama cache miss: [builder 2/3] RUN apt-get update && apt-get install -y --no-install-recommends curl wget && apt-get clean && rm -rf /var/lib/apt/lists/* cache miss: [stage-1 2/9] RUN useradd -m -u 1000 ollama && mkdir -p /home/ollama/.ollama && chown -R ollama:ollama /home/ollama cache miss: [builder 3/3] RUN curl -fsSL https://ollama.ai/install.sh | sh {"total":16,"completed":10,"user_total":11,"user_cached":0,"user_completed":5,"user_cacheable":10,"from":1,"miss":10,"client_duration_ms":6140}

Build logs:

Fetching error logs...