| FROM node:21 | |
| RUN apt-get update | |
| EXPOSE 7860 | |
| # 将工作目录设置为 LYLN 目录 | |
| WORKDIR /LYLN | |
| # 将项目文件复制到容器中 | |
| COPY ./character-Api /LYLN | |
| # 安装插件 | |
| RUN git clone --depth=1 https://github.com/LiuYunLingNai/api.git /LYLN/data | |
| RUN ls | |
| RUN npm --registry=https://registry.npmmirror.com install pnpm -g | |
| RUN pnpm install | |
| CMD node app | |