Skip to content

Use the image directly in projects with no features - #3

Merged
pedantic-git merged 1 commit into
mainfrom
fix/image-without-build
Nov 3, 2026
Merged

pedantic-git merged 1 commit into
mainfrom
fix/image-without-build

Conversation

@pedantic-git

Copy link
Copy Markdown
Member

"Using an image" told every project to write a Dockerfile that starts FROM the base image. For a compose-based project with no devcontainer features, that fails to build: the devcontainer CLI builds the service with docker compose build from a Dockerfile it generates in /tmp, and compose's buildx bake won't read files outside the build context. That hit shufflehorse (shufflehorse#346), and wdil has the same setup (wdil#49).

The section now shows both setups:

  • No features and no packages of its own: image: in compose.yaml, with no Dockerfile.
  • Its own packages: a Dockerfile, which only works alongside at least one feature, like name.pn and dump.

It quotes the error, so the next person to hit it can find the explanation.

🤖 Generated with Claude Code

Building from a Dockerfile with no devcontainer features fails, because
compose's buildx bake won't read the Dockerfile the devcontainer CLI
generates in /tmp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pedantic-git
pedantic-git merged commit a5c33fb into main Nov 3, 2026
3 checks passed
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