fix: fixed and improved docker build and runtime configs #2024
+37
−27
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 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
toruntime
andbolt-ai-development
todevelopment
acrossDockerfile
,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:
5173
instead of3000
for consistency with development and deployment environments.bindings.sh
,wrangler.toml
,functions
,worker-configuration.d.ts
) needed forwrangler pages dev
.bindings.sh
executable and ensurepnpm
is enabled in the runtime stage.5173
).pnpm run dockerstart
for local development withwrangler pages dev
.Documentation and script updates:
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:
pnpm
version from9.15.9
to9.14.4
in the Dockerfile for both build and runtime stages, possibly for compatibility reasons. [1] [2]AWS_BEDROCK_CONFIG
as a build argument in the Dockerfile to support additional configuration.Minor build and script fixes:
package.json
to use the correct config file extension (vite-electron.config.ts
).Environment and compose file cleanup:
COMPOSE_PROFILES=production
and related comments fromdocker-compose.yaml
to streamline environment configuration.Co-author: Factory AI droid agents