build error

Job failed with exit code: 1. Reason: cache miss: [ 8/10] COPY app.py . cache miss: [ 7/10] RUN pip install --no-cache-dir -r requirements.txt cache miss: [10/10] RUN echo '#!/bin/bash\nset -e\nLOG_FILE=/data/startup.log\nmkdir -p /data && touch $LOG_FILE && chmod 644 $LOG_FILE\necho "Starting Ollama server at $(date)" >> $LOG_FILE\nollama serve >> $LOG_FILE 2>&1 &\nsleep 15\nMODELS_TO_PULL="${MODELS_TO_PULL:-hf.co/ggml-org/gemma-3-270m-GGUF:Q8_0}"\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 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: [ 6/10] COPY requirements.txt . cache miss: [ 5/10] RUN curl -fsSL https://ollama.com/install.sh | sh cache miss: [ 9/10] RUN chown -R ollama:ollama /app && chmod -R 755 /app cache miss: [ 3/10] WORKDIR /app cache miss: [ 2/10] RUN useradd -m -u 1000 ollama && mkdir -p /data/ollama && chown -R ollama:ollama /data cache miss: [ 4/10] RUN apt-get update && apt-get install -y --no-install-recommends curl wget && apt-get clean && rm -rf /var/lib/apt/lists/* {"total":15,"completed":10,"user_total":10,"user_cached":0,"user_completed":5,"user_cacheable":9,"from":1,"miss":9,"client_duration_ms":6629}

Build logs:

Fetching error logs...