Skip to content

Add CMD sleep infinity to prevent container exit - #54

Merged
gatezh merged 1 commit into
masterfrom
fix-sleep
Mar 26, 2026
Merged

gatezh merged 1 commit into
masterfrom
fix-sleep

Conversation

@gatezh

@gatezh gatezh commented Mar 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add CMD ["sleep", "infinity"] to both default and sandbox build targets in claude-code/.devcontainer/Dockerfile
  • Images inherit CMD ["node"] from node:24-trixie-slim, which exits immediately when used with Docker Compose (where overrideCommand defaults to false)
  • This makes the images work correctly in both image mode and Docker Compose mode

Closes #53

🤖 Generated with Claude Code

Images inherit CMD ["node"] from node:24-trixie-slim, which exits
immediately in Docker Compose mode where overrideCommand defaults to
false. This makes both targets work regardless of consumption mode.

Closes #53

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gatezh
gatezh merged commit 823fccd into master Mar 26, 2026
8 checks passed
@gatezh
gatezh deleted the fix-sleep branch March 26, 2026 01:00
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.

Add CMD ["sleep", "infinity"] to Dockerfiles

1 participant