Miao-MBT / Dockerfile
Yvan-W's picture
Update Dockerfile
a9afc90 verified
raw
history blame contribute delete
475 Bytes
FROM node:22
RUN apt-get update
# 将工作目录设置为 LYLN 目录
WORKDIR /LYLN
# 将项目文件复制到容器中
RUN git clone --depth=1 https://github.com/Zyy955/character-Api.git
RUN sed -i '8cconst port = 7860' character-Api/app.js
RUN git clone --depth=1 https://github.com/GuGuNiu/Miao-Plugin-MBT.git ./character-Api/data
WORKDIR /LYLN/character-Api
# 安装插件
RUN npm install pnpm -g
RUN pnpm install
CMD cd /LYLN/character-Api && node app
EXPOSE 7860