Add Dockerfile#24
Merged
Merged
Conversation
…-compose.yml, and .env.example - Introduced .dockerignore to exclude unnecessary files from Docker context. - Created Dockerfile for building a production image of the SyftAI server. - Added docker-compose.yml for service orchestration, including environment variables and health checks. - Provided .env.example for environment configuration guidance.
…ble for database path
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a comprehensive update to the SyftAI server's configuration and deployment process, focusing on standardizing environment variable naming, improving Docker and Compose support, and refining configuration validation. The changes enhance consistency, make containerization easier, and improve the developer experience for both local and production setups.
Containerization & Deployment Improvements:
Dockerfilethat builds a minimal image with pre-built frontend, Python dependencies viauv, and a health check endpoint.docker-compose.ymlfor orchestrating the SyftAI server, including persistent volumes, resource limits, environment variable configuration, and health checks..dockerignorefile to exclude unnecessary files and directories from Docker builds, reducing image size and build time.Configuration Standardization & Validation:
SYFTAI_PORTtoSYFT_PORTthroughout the codebase and scripts for consistency. [1] [2] [3]SYFT_prefix for all environment variables and added a validator for thepublic_urlfield to ensure correct URL formatting. [1] [2] [3]Developer Experience:
.env.examplefile to guide users in configuring their environment variables for local and Docker deployments.