FROM mcr.microsoft.com/devcontainers/cpp:ubuntu

USER vscode
WORKDIR /home/vscode
RUN curl -o install_nvm.sh https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh && bash install_nvm.sh
RUN export NVM_DIR="$HOME/.nvm" && . "$NVM_DIR/nvm.sh" && nvm install --lts && npm install -g --ignore-scripts @earendil-works/pi-coding-agent
