FROM node:20-alpine # Alpine 默认没有 git,要装一下 RUN apk add --no-cache git WORKDIR /app # 拉代码到当前目录 (末尾的 . 让代码直接进 /app,不会多套一层文件夹) RUN git clone --depth=1 https://github.com/TonyD365/GeoFS-Dual-Control.git . # 装运行依赖 RUN npm install --omit=dev EXPOSE 7860 CMD ["npm", "start"]