Spaces:
Runtime error
Runtime error
Download Dockerfile from ankeke2026/Yunzai: direct link, hf CLI and curl.
- Browser
- Download file 518 Bytes
-
https://huggingface.co/spaces/ankeke2026/Yunzai/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ankeke2026/Yunzai/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ankeke2026/Yunzai/resolve/main/Dockerfile
518 Bytes
| # 使用 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"] | |