File size: 363 Bytes
a3ccc1d
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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"]