Fetching metadata from the HF Docker repository...
Nov 21, 2024 12:34 fix: Resolve yarn installation and build issues - Add proper yarn installation via npm
- Configure yarn cache and network timeout
- Add build optimization flags
- Implement BuildKit caching
- Add .dockerignore for build optimization 12:29 Setup Dify for HF Spaces deployment with optimized Docker configuration Nov 15, 2024 15:32 fix: resolve dependency installation issues - Split package installations into manageable groups
- Add proper Node.js setup with dependencies
- Install Python packages in logical groups
- Add verification steps
- Clean up after installations 15:23 fix: resolve Node.js and npm installation issues - Add proper Node.js repository setup
- Install Node.js and npm correctly
- Add yarn installation
- Add version verification
- Clean up package lists after installation 15:03 fix: resolve package installation issues - Add proper package repository update
- Install build-essential and development packages
- Fix NLTK installation and data download
- Clean up package lists after installation Nov 13, 2024 20:28 build: force rebuild with package installation fixes 20:17 fix: update Dockerfile to properly handle package installation 19:58 fix: update Dockerfile to properly handle package installations Nov 12, 2024 17:32 fix: optimize Dockerfile for Hugging Face Spaces deployment 17:12 fix: resolve package version conflicts - Standardize Flask-Migrate to version 4.0.7
- Remove duplicate package entries
- Maintain consistent versions across stages
- Fix dependency conflicts in pip install 17:02 fix: update package versions for compatibility - Update Cohere to v4.43 for ChatStreamRequestToolResultsItem
- Add explicit Flask-Migrate and Flask-SQLAlchemy versions
- Ensure consistent versions in builder and runtime stages
- Maintain existing dependency structure 16:32 fix: update OpenAI package version - Update OpenAI to version 1.14.0 for ThreadMessage support
- Add explicit version to prevent overrides
- Maintain existing dependency structure
- Update both builder and runtime stages 16:09 fix: add model provider dependencies - Add cohere package for Cohere AI integration
- Add additional model provider packages
- Add LangChain dependencies for model integration
- Maintain existing dependency structure
- Update both builder and runtime stages 15:38 fix: update dependencies in Dockerfile - Remove nvidia-triton-client due to compatibility issues
- Use tritonclient[all] for NVIDIA Triton support
- Maintain existing dependency structure 15:25 fix: add Google AI dependencies - Add google-cloud-aiplatform for Vertex AI
- Add google-generativeai for PaLM API
- Add vertexai for Google AI integration
- Add supporting Google Cloud libraries
- Maintain existing dependency structure 14:58 fix: add Google AI dependencies - Add google-cloud-aiplatform for Vertex AI
- Add google-generativeai for PaLM API
- Add vertexai for Google AI integration
- Add supporting Google Cloud libraries
- Maintain existing dependency structure 14:36 fix: add missing Python dependencies - Add Pillow for PIL/image processing
- Add opencv-python-headless for image operations
- Add scikit-learn and scipy for ML operations
- Add dependencies in both builder and runtime stages
- Maintain existing dependency structure 14:25 fix: add missing Python dependencies - Add anthropic==0.23.1 for LLM support
- Add openai==1.12.0 for OpenAI integration
- Add flask-migrate==4.0.5 for database migrations
- Maintain existing dependency structure
- Keep NLTK downloader configuration 13:18 fix: add missing Python dependencies - Add openai package for LLM support
- Add flask-migrate for database migrations
- Update Flask CLI command in entrypoint.sh
- Fix Redis client initialization issue 13:15 fix: add Python dependencies installation - Add pip install before running Flask migrations
- Fix openai module not found error
- Improve error handling for database initialization
- Add proper working directory management 11:41 fix: add Python dependencies installation - Add pip install before running Flask migrations
- Fix openai module not found error
- Improve error handling for database initialization
- Add proper working directory management Nov 11, 2024 16:26 fix: add Python dependencies installation - Add pip install before running Flask migrations
- Fix openai module not found error
- Improve error handling for database initialization
- Add proper working directory management 15:47 fix: improve Redis handling for HF Spaces - Add Redis installation check
- Add local Redis fallback for HF Spaces
- Improve Redis connection handling
- Add data directory for Redis persistence
- Fix Redis connection timeout issues 15:47 fix: improve Redis handling for HF Spaces - Add Redis installation check
- Add local Redis fallback for HF Spaces
- Improve Redis connection handling
- Add data directory for Redis persistence
- Fix Redis connection timeout issues 15:19 fix: improve Redis and PostgreSQL connection handling - Add proper error messages for connection failures
- Implement local Redis fallback mechanism
- Fix variable scoping in Redis check function
- Add detailed logging for connection attempts
- Ensure proper exit codes on failures 15:11 fix: improve Redis and PostgreSQL connection handling - Add proper error messages for connection failures
- Implement local Redis fallback mechanism
- Fix variable scoping in Redis check function
- Add detailed logging for connection attempts
- Ensure proper exit codes on failures 14:36 update 13:49 feat: update database configuration in docker-compose - Add DATABASE_TYPE environment variable
- Update database health checks
- Standardize environment variables across services 13:48 feat: implement database fallback mechanism - Add SQLite fallback support
- Enhance PostgreSQL connection checks with timeout
- Improve error handling and logging
- Add directory creation for SQLite database 11:33 fix: improve database connection handling in entrypoint - Add timeout-based PostgreSQL connection check
- Implement max retry attempts (30 attempts, 5s between each)
- Add detailed connection attempt logging
- Maintain compatibility with existing Redis checks
- Exit gracefully if database connection fails after max attempts
References:
docker/entrypoint.sh (lines 1-33)
docker/docker-compose.yaml (lines 331-346) 11:17 fix: improve database connection handling in entrypoint - Add timeout-based PostgreSQL connection check
- Implement max retry attempts (30 attempts, 5s between each)
- Add detailed connection attempt logging
- Maintain compatibility with existing Redis checks
- Exit gracefully if database connection fails after max attempts
References:
docker/entrypoint.sh (lines 1-33)
docker/docker-compose.yaml (lines 331-346) 01:00 fix: improve database configuration and healthchecks - Enhance database connection checks in entrypoint.sh
Ref: docker/entrypoint.sh (lines 6-24)
- Standardize database environment variables
Ref: docker-compose.yaml (lines 34-38, 331-334)
- Update healthcheck configurations for better reliability
Ref: docker-compose.yaml (lines 337-341)
Ref: docker-compose.middleware.yaml (lines 22-26)
- Add proper network configuration
Ref: docker-compose.yaml (lines 329-330)
- Update database configuration documentation
Ref: middleware.env.example (lines 4-41) Nov 10, 2024 20:49 fix: update database environment variables in Dockerfile - Add explicit database configuration variables
- Match environment variables with docker-compose.yaml
- Ensure consistency between services 20:24 fix: improve database initialization and connection handling 20:08 feat: optimize Dockerfile for HuggingFace Spaces deployment 15:06 feat: optimize Dockerfile for HuggingFace Spaces deployment 14:51 feat: optimize Dockerfile for HuggingFace Spaces deployment 14:13 feat: optimize Dockerfile for HuggingFace Spaces deployment 14:00 feat: optimize Dockerfile for HuggingFace Spaces deployment 13:52 feat: optimize Dockerfile for HuggingFace Spaces deployment 12:11 feat: optimize Dockerfile for HuggingFace Spaces deployment 12:06 feat: optimize Dockerfile for HuggingFace Spaces deployment 11:59 feat: optimize Dockerfile for HuggingFace Spaces deployment 11:52 feat: optimize Dockerfile for HuggingFace Spaces deployment 11:46 feat: optimize Dockerfile for HuggingFace Spaces deployment 11:26 feat: optimize Dockerfile for HuggingFace Spaces deployment 11:16 feat: optimize Dockerfile for HuggingFace Spaces deployment 11:14 feat: optimize Dockerfile for HuggingFace Spaces deployment Nov 8, 2024 19:44 Update Dockerfile for correct directory structure 19:29 Update Dockerfile for correct directory structure