claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Fix: Pin Claude version in Dockerfile

Open kowsik11 opened this issue 8 months ago • 2 comments

🔧 Fix: Pin Claude version in Dockerfile to prevent stale installations

🧠 Summary

This pull request updates the Dockerfile to explicitly install a specific version of @anthropic-ai/claude-code instead of relying on the default latest tag. This ensures consistent, predictable builds across environments.

🚀 What’s Changed

- RUN npm install -g @anthropic-ai/claude-code
+ RUN npm install -g @anthropic-ai/[email protected]

kowsik11 avatar Jun 22 '25 16:06 kowsik11

But why?

GoodDingo avatar Jun 25 '25 19:06 GoodDingo

But why?

This ensures consistent, predictable builds across environments.

I don't think I'm in favor but come on.

hesreallyhim avatar Jun 30 '25 20:06 hesreallyhim

Thanks for the suggestions and discussion - added an ARG CLAUDE_CODE_VERSION that allows overriding the version of Claude Code in the devcontainer.

ant-kurt avatar Jul 28 '25 23:07 ant-kurt