Syrelash
CCoder.com
•Created by Syrelash on 12/31/2024 in #help
Modify $PATH to include custom bin folder
Good morning y'all,
How do I modify my vs code (desktop) $PATH for my container? One of my extensions requires Java,
Current PATH:
/root/.vscode-server/cli/servers/Stable-fabdb6a30b49f79a7aba0f2ad9df9b399473380f/server/bin/remote-cli:/usr/local/share/nvm/current/bin:/usr/local/share/npm-global/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.local/bin:/root/.vscode-server/data/User/globalStorage/github.copilot-chat/debugCommand
I tried adding RUN echo "export PATH=$PATH" > /etc/environment
to my Dockerfile, and "runArgs": ["--env-file",".devcontainer/devcontainer.env"]
to my dev container json. Neither of those seem to carry over to the visual studio code though.9 replies