You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 23, 2025. It is now read-only.
The postCreateCommand in the devcontainer.json file fails with the error /bin/sh: go: not found.
Explanation
The issue arises because the go command is not available in the container during the execution of the postCreateCommand in the devcontainer.json file. This happens because the base Alpine image used in the second stage of the Dockerfile does not include the Go runtime or tools, as they are only present in the builder stage.
Environment Details
Host OS: macOS (macOS sequoia 15.3.1)
Devcontainer: Using VS Code Remote - Containers
Steps to Reproduce the Issue
Use the provided Dockerfile.
Attempt to build and run the container in a development environment using a devcontainer.json.