Download Dockerfile from qeqwe15/bbbb: direct link, hf CLI and curl.
- Browser
- Download file 497 Bytes
-
https://huggingface.co/spaces/qeqwe15/bbbb/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/qeqwe15/bbbb/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/qeqwe15/bbbb/resolve/main/Dockerfile
497 Bytes
| FROM node:latest AS builder | |
| # 创建非 root 用户并设置工作目录 | |
| RUN useradd -m builder && mkdir -p /app && chown -R builder:builder /app | |
| USER builder | |
| WORKDIR /app | |
| ENV CLOUDFLARE_API_TOKEN=zEcIjqaY-uQfUYicpeTlygpRj8auLps2amIb-9Wo | |
| # 下载源码 | |
| RUN apt-get update && apt-get install -y git | |
| RUN git clone https://github.com/jianjianai/microsoft-copilot-porxy | |
| # 进入源代码目录 | |
| WORKDIR /app/microsoft-copilot-porxy | |
| # 安装依赖 | |
| RUN npm install | |
| # 编译项目 | |
| CMD npm run deploy |