Spaces:
Paused
Paused
Download Dockerfile from sysy007uuu/cursorapi: direct link, hf CLI and curl.
- Browser
- Download file 311 Bytes
-
https://huggingface.co/spaces/sysy007uuu/cursorapi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sysy007uuu/cursorapi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sysy007uuu/cursorapi/resolve/main/Dockerfile
311 Bytes
| FROM node:18-alpine | |
| # 设置工作目录 | |
| WORKDIR /app | |
| # 复制package.json和package-lock.json | |
| COPY package*.json ./ | |
| # 设置环境变量 | |
| ENV NODE_ENV=production | |
| # 安装依赖 | |
| RUN npm install | |
| # 复制源代码 | |
| COPY . . | |
| # 暴露端口 | |
| EXPOSE 3000 | |
| # 启动命令 | |
| CMD ["npm", "start"] |