Skip to content

Commit 3acc42d

Browse files
drewstoneclaude
andcommitted
fix: run cargo install as root in stylus.Dockerfile
The cargo install was failing with permission denied because it ran as the agent user but the cargo registry had root-owned files. Move cargo install to run as root (like other Dockerfiles do). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 025206e commit 3acc42d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

infra/stylus.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
FROM foundry:latest
22

33
USER root
4-
RUN rustup target add wasm32-unknown-unknown
4+
RUN rustup target add wasm32-unknown-unknown && \
5+
cargo install cargo-stylus && \
6+
chmod -R a+w /usr/local/cargo
57

68
USER agent
79

8-
RUN cargo install cargo-stylus
9-
1010
LABEL description="stylus infrastructure layer"

0 commit comments

Comments
 (0)