chatgpt / Dockerfile
knbn's picture
Update Dockerfile
19fc15f verified
# 使用基于 Node.js 18 的镜像
FROM node:18
# 安装 Redis
RUN apt-get update && apt-get install -y redis-server
# 安装 Chromium
RUN apt install chromium -y
# 将工作目录设置为 app 目录
WORKDIR /app
# 将项目文件复制到容器中
COPY ./Yunzai /app
# 安装插件
Run git clone --depth=1 https://github.com/yeyang52/yenai-plugin.git ./plugins/yenai-plugin
Run git clone https://gitee.com/TimeRainStarSky/TRSS-Plugin ./plugins/TRSS-plugin/
RUN git clone https://github.com/xfdown/xiaofei-plugin.git ./plugins/xiaofei-plugin/
# 给予权限
RUN chmod -R 777 /app
# 安装依赖
RUN npm install -g pnpm
RUN pnpm install
# 启动应用程序
CMD ["node", "app.js"]