fix: resolve critical Docker configuration issues#2020
Merged
Stijnus merged 7 commits intostackblitz-labs:mainfrom Oct 23, 2025
Merged
fix: resolve critical Docker configuration issues#2020Stijnus merged 7 commits intostackblitz-labs:mainfrom
Stijnus merged 7 commits intostackblitz-labs:mainfrom
Conversation
- Change target from bolt-ai-production to runtime - Matches the actual stage name in the new Dockerfile structure - Fixes CI failure: target stage 'bolt-ai-production' could not be found
This commit fixes multiple critical Docker configuration issues that prevented successful builds: **Dockerfile Issues Fixed:** - Replace incomplete runtime stage with proper production stage using Wrangler - Add missing environment variables for all API providers (DeepSeek, LMStudio, Mistral, Perplexity, OpenAI-like) - Use correct port (5173) instead of 3000 to match Wrangler configuration - Add proper bindings.sh script copying and execution permissions - Configure Wrangler metrics and proper startup command **Docker Compose Issues Fixed:** - Add missing `context` and `dockerfile` fields to app-dev service - Fix target name from `bolt-ai-development` to `development` **Package.json Issues Fixed:** - Update dockerbuild script to use correct target name `development` **Testing:** - ✅ Both `pnpm run dockerbuild` and `pnpm run dockerbuild:prod` now work - ✅ All environment variables properly configured - ✅ Docker images build successfully with proper Wrangler integration Resolves Docker build failures and enables proper containerized deployment. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
…names Update ci.yaml and docker.yaml workflows to use correct Docker target stage name 'bolt-ai-production' instead of 'runtime'. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
anandkumarpatel
approved these changes
Oct 14, 2025
anandkumarpatel
left a comment
There was a problem hiding this comment.
Hit this issue as well. LGTM!
Adds git installation for build/runtime scripts and introduces a separate prod-deps stage to prune dependencies before final production image. Updates file copy sources to use prod-deps stage, improving build efficiency and image size.
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.
Summary
Fixes #2014
This PR resolves critical Docker configuration issues that prevented users from building the application using Docker.
Problem
Users were encountering the following error when running
npm run dockerbuild:The root cause was mismatched stage names between the Dockerfile, docker-compose.yaml, and package.json build scripts.
Changes
1. Dockerfile Stage Naming
bolt-ai-production(line 33)development(line 81)2. docker-compose.yaml Target References
target: bolt-ai-production(line 7)target: development(line 43)3. package.json Build Scripts
--target bolt-ai-production(line 26)--target development(line 27)Testing
Users can now successfully build Docker images using:
npm run dockerbuild- for developmentnpm run dockerbuild:prod- for productiondocker-compose up- for docker-compose based deploymentsImpact
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com