# 使用 Node.js 18 作为基础镜像 FROM node:18-slim WORKDIR /app RUN apt update RUN apt install git -y RUN git clone https://github.com/Nekohy/pieces-os.git . # 安装依赖 RUN npm ci --only=production # 暴露端口(根据您的应用设置) EXPOSE 8787 # 运行应用 CMD ["node", "api/index.js"]