# 使用 Node.js 22 镜像 FROM node:22 # 安装 Redis RUN apt-get update && apt-get install -y redis-server # 安装 Chromium RUN apt-get install -y chromium # 设置工作目录 WORKDIR /app # 将项目文件复制到容器中 COPY ./entrypoint.sh /app # 查看文件(可选) RUN ls -la # 给 app 目录权限 RUN chmod -R 777 /app RUN npm install pnpm -g # 拷贝启动脚本 COPY entrypoint.sh /app/entrypoint.sh RUN chmod +x /app/entrypoint.sh # 使用启动脚本启动 CMD ["bash", "entrypoint.sh"]