Download Dockerfile from rr1/pasl: direct link, hf CLI and curl.
- Browser
- Download file 339 Bytes
-
https://huggingface.co/spaces/rr1/pasl/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rr1/pasl/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rr1/pasl/resolve/main/Dockerfile
339 Bytes
| # 使用轻量版 Node.js 镜像 | |
| FROM node:18-alpine | |
| # 设置工作目录 | |
| WORKDIR /app | |
| # 直接在容器内初始化并安装依赖 | |
| RUN npm init -y && npm install express axios --production | |
| # 复制您的应用源代码 | |
| COPY app.js . | |
| # 暴露端口(与 Python 脚本一致:7860) | |
| EXPOSE 7860 | |
| # 启动命令 | |
| CMD ["node", "app.js"] |