TypescriptDev/.devcontainer/Dockerfile

6 lines
425 B
Docker

FROM mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye
RUN useradd --groups sudo --no-create-home --shell /bin/bash node \
&& echo "node ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/node \
&& chmod 0440 /etc/sudoers.d/node
RUN sh -c "$(curl -fsSL https://starship.rs/install.sh)" -y -f && echo 'eval "$(starship init bash)"' >> /home/node/.bashrc
RUN npm install cnpm -g && cnpm install tsx rimraf @antfu/ni -g