TypescriptDev/.devcontainer/Dockerfile

6 lines
452 B
Docker
Raw Normal View History

2024-02-06 16:21:10 +00:00
FROM mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye
2024-02-07 15:30:12 +00:00
RUN id -u node &> /dev/null || useradd --groups sudo --no-create-home --shell /bin/bash node \
2024-02-06 16:21:10 +00:00
&& 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