Spaces:
Sleeping
Sleeping
Download Dockerfile from AZILS/Antigravity2api: direct link, hf CLI and curl.
- Browser
- Download file 454 Bytes
-
https://huggingface.co/spaces/AZILS/Antigravity2api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/AZILS/Antigravity2api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/AZILS/Antigravity2api/resolve/main/Dockerfile
454 Bytes
| FROM node:20-slim | |
| WORKDIR /app | |
| # 复制项目文件 | |
| COPY package*.json ./ | |
| COPY client/package*.json ./client/ | |
| # 安装依赖 | |
| RUN npm install | |
| # 复制源代码 | |
| COPY . . | |
| # 构建前端 | |
| RUN npm run build | |
| # 创建数据目录和初始文件 | |
| RUN mkdir -p data && echo '[]' > data/accounts.json | |
| # 暴露端口 (Hugging Face Spaces 使用 7860) | |
| EXPOSE 7860 | |
| # 设置环境变量 | |
| ENV PORT=7860 | |
| ENV NODE_ENV=production | |
| # 启动服务 | |
| CMD ["npm", "start"] | |