Spaces:
Paused
Paused
Download Dockerfile from Yuan2006/Genspark2API: direct link, hf CLI and curl.
- Browser
- Download file 287 Bytes
-
https://huggingface.co/spaces/Yuan2006/Genspark2API/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Yuan2006/Genspark2API/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Yuan2006/Genspark2API/resolve/main/Dockerfile
287 Bytes
| # 使用 Node 20 Alpine 作为基础镜像 | |
| FROM node:20-alpine | |
| # 设置容器内的工作目录 | |
| WORKDIR /app | |
| # 复制整个项目目录到容器中 | |
| COPY . . | |
| # 安装依赖 | |
| RUN npm install | |
| # 暴露应用运行的端口 | |
| EXPOSE 8666 | |
| # 运行应用的命令 | |
| CMD ["node", "src/index.js"] |