feat(create-objectstack): scaffolded projects ship container-ready#2979
Merged
os-zhuang merged 1 commit intoJul 15, 2026
Merged
Conversation
The blank template now includes the docker trio from examples/docker, adapted for in-project use (no 'copy these files' indirection): - Dockerfile — two-stage build onto the official runtime image ghcr.io/objectstack-ai/objectstack - docker-compose.yml — app + Postgres single-host stack - .dockerignore Plus a Deploy section in the template README and a production one-liner in the framework README Quick Start. Verified: package build copies the trio (incl. the dotfile) into dist/templates; a real scaffold run (--skip-install) lands all three files with the official-image FROM line intact. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0162o68e5w3bpUBEVRQboUGG
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📓 Docs Drift CheckThis PR changes 1 package(s): 5 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:
|
os-zhuang
marked this pull request as ready for review
July 15, 2026 15:49
os-zhuang
deleted the
claude/objectstack-official-docker-boic56-scaffold-docker
branch
July 15, 2026 15:49
68 tasks
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.
背景
P2 脚手架增强(官方 Docker 镜像 #2952 的配套):新项目
npm create objectstack之后应当开箱即可容器化上生产,而不是让用户去 examples/docker 手动复制文件。变更内容
blank模板新增三件套(由 examples/docker 改编,注释改为面向已脚手架项目、去掉「复制这些文件」的间接指引):Dockerfile— 两阶段构建,runtime 阶段FROM ghcr.io/objectstack-ai/objectstack:latest(注释提示按 CLI 版本锁 tag);docker-compose.yml— app + Postgres 单机生产栈;.dockerignore;create-objectstack: minor。验证
pnpm --filter create-objectstack build:tsupcpSync把三件套(含 dotfile)完整拷入dist/templates/blank/;node dist/index.js scaffold-test --template blank --skip-install):三个文件全部落盘,FROM ghcr.io/objectstack-ai/objectstack完好;.dockerignore不在 npm pack 的强制排除名单内(.gitignore才在),随包发布无问题。🤖 Generated with Claude Code
https://claude.ai/code/session_0162o68e5w3bpUBEVRQboUGG
Generated by Claude Code