Skip to content

Conversation

mouradamri21
Copy link

@mouradamri21 mouradamri21 commented Oct 6, 2025

This pull request updates the Docker build and runtime configuration to improve clarity, consistency, and compatibility, especially for local development and deployment environments. The changes standardize Docker build targets, update documentation and scripts, and refine the Dockerfile for better runtime behavior and support for development tools.

Docker build and runtime improvements:

  • Standardized Docker build targets by renaming bolt-ai-production to runtime and bolt-ai-development to development across Dockerfile, docker-compose.yaml, build scripts, and documentation. This unifies naming and reduces confusion when building or running containers. [1] [2] [3] [4] [5] [6] [7] [8]

  • Updated the runtime Docker image to:

    • Set the default port to 5173 instead of 3000 for consistency with development and deployment environments.
    • Copy additional files (bindings.sh, wrangler.toml, functions, worker-configuration.d.ts) needed for wrangler pages dev.
    • Make bindings.sh executable and ensure pnpm is enabled in the runtime stage.
    • Adjust the healthcheck to use the correct port (5173).
    • Start the container using pnpm run dockerstart for local development with wrangler pages dev.

Documentation and script updates:

  • Updated all references in documentation (CONTRIBUTING.md, docs/docs/CONTRIBUTING.md) and build scripts (package.json) to use the new Docker build target names (runtime, development). [1] [2] [3] [4] [5]

Dependency and configuration changes:

  • Downgraded pnpm version from 9.15.9 to 9.14.4 in the Dockerfile for both build and runtime stages, possibly for compatibility reasons. [1] [2]
  • Added AWS_BEDROCK_CONFIG as a build argument in the Dockerfile to support additional configuration.

Minor build and script fixes:

  • Fixed the renderer build script in package.json to use the correct config file extension (vite-electron.config.ts).

Environment and compose file cleanup:

  • Removed unnecessary COMPOSE_PROFILES=production and related comments from docker-compose.yaml to streamline environment configuration.

Co-author: Factory AI droid agents

- Fixed Docker stage name mismatches across all files (runtime/development)
- Restructured Dockerfile with proper Railway deployment support
- Added missing ARG declarations and aligned pnpm versions
- Updated port configurations from 3000 to 5173
- Cleaned docker-compose.yaml profiles
- Added Railway-specific deployment options
- Updated railway Docker stage to include Wrangler dependencies
- Added --local flag to disable host checking in production
- Added DANGEROUSLY_DISABLE_HOST_CHECK env var for Railway
- Fixed vite server configuration for deployment environments
- Removed railway Docker stage
- Removed start:railway and dockerbuild:railway scripts
- Reverted vite.config.ts server settings
- Cleaned up for Cloudflare Pages deployment only
@mouradamri21 mouradamri21 changed the title Fixed and improved Docker build fix: fixed and improved docker build and runtime configs Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant