Download Dockerfile from wusama/test: direct link, hf CLI and curl.
- Browser
- Download file 292 Bytes
-
https://huggingface.co/spaces/wusama/test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/wusama/test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/wusama/test/resolve/main/Dockerfile
292 Bytes
| # 使用轻量级 Node.js 镜像 | |
| FROM node:18-slim | |
| # 设置工作目录 | |
| WORKDIR /app | |
| # 复制依赖文件并安装 | |
| COPY package*.json ./ | |
| RUN npm install --production | |
| # 复制业务代码 | |
| COPY . . | |
| # 暴露 Hugging Face 指定的端口 | |
| EXPOSE 7860 | |
| # 启动命令 | |
| CMD ["node", "index.mjs"] | |