Download Dockerfile from qitianhh/node: direct link, hf CLI and curl.
- Browser
- Download file 252 Bytes
-
https://huggingface.co/spaces/qitianhh/node/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/qitianhh/node/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/qitianhh/node/resolve/main/Dockerfile
252 Bytes
| FROM node:18-slim | |
| WORKDIR /app | |
| # 先复制 package.json,单独安装依赖,利用缓存 | |
| COPY package*.json ./ | |
| RUN npm install | |
| # 再复制源码 | |
| COPY . . | |
| # 给启动脚本执行权限 | |
| RUN chmod +x start.sh | |
| EXPOSE 7860 | |
| CMD ["node", "index.js"] |