FROM codercom/enterprise-base:ubuntu USER root # 安装Node.js RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ apt-get install -y nodejs && \ npm install -g npm@latest pnpm # 可以添加其他开发工具 RUN apt-get update && apt-get install -y \ git \ curl \ wget \ vim \ build-essential \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* # 设置回普通用户 USER coder