PATH getting overwritten
Hello, I am trying to setup a Rust dev container. I am using the official image but when I create a workspace it overwrites the PATH and removes /usr/local/cargo/bin from it. If I pull down the image locally, the PATH is as it should but not when using Coder
8 Replies
<#1218577988187193355>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
I fixed it by adding
RUN echo "export PATH=\$PATH:/usr/local/cargo/bin" >> ~/.profile
to the bottom of the Dockerfile. Its still quite annoying that that needs to be done.could you send your template over so we can take a look ?
Coder template*
Sure! These are the files for the broken version.
dockerfile:
if you create a workspace using that template and open the terminal, you will not be able to run
cargo
Can confirm, just hit this myself
have you ever found any other fix?
No I didnt