repos

the cargo path threads into ssh shells so rust-analyzer is found

f4771f23 by Isaac Bythewood · 1 month ago

modified containers/webdev/Dockerfile
@@ -151,6 +151,13 @@ RUN curl --proto '=https' --tlsv1.2 -fsSL https://sh.rustup.rs | \        --default-toolchain stable \        --component rust-analyzer,clippy,rustfmt# Source ~/.cargo/bin onto PATH from the rc files. The ENV PATH above covers# `docker exec`, but SSH logins (port 2222) build their own environment and# don't inherit it, so without this the rust-analyzer LSP plugin can't find# its binary. .cargo/env is self-guarded, so sourcing twice is a no-op.RUN echo '. "$HOME/.cargo/env"' >> /home/dev/.bashrc \    && echo '[ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"' >> /home/dev/.profileRUN curl -fsSL https://claude.ai/install.sh | bashENTRYPOINT ["/usr/local/bin/entrypoint.sh"]