| FROM node:18-alpine | |
| RUN apk add --no-cache git | |
| WORKDIR /app | |
| RUN git clone https://github.com/liuw1535/antigravity2api-nodejs.git . | |
| RUN npm install | |
| RUN cp config.json.example config.json | |
| RUN cp .env.example .env | |
| # 核心:自动把 8045 端口改成 HF 要求的 7860 端口 | |
| RUN sed -i 's/"port": 8045/"port": 7860/g' config.json | |
| EXPOSE 7860 | |
| CMD ["npm", "start"] | |