devcontainer build --workspace-folder .

Category: Web App Development

devcontainer build --workspace-folder .

Build the dev container image without starting it

Builds the image defined by the devcontainer.json configuration and stops there, without creating a container. Pre-building images speeds up later starts and validates the Dockerfile. Add --image-name to tag the result.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.