docker-compose-builder.yml 635 B

123456789101112131415161718192021
  1. version: "3"
  2. services:
  3. web-builder:
  4. image: node:22-alpine # 官方Node.js v22镜像(Alpine版仅约180MB):ml-citation{ref="3,4" data="citationList"}
  5. volumes:
  6. - ../Web/:/app # 挂载项目代码目录
  7. - ./.env.production:/app/.env.production
  8. working_dir: /app
  9. environment:
  10. NODE_ENV: development
  11. command: sh -c "npm install --legacy-peer-deps --registry=https://registry.npmmirror.com && npm run build"
  12. net-builder:
  13. image: mcr.microsoft.com/dotnet/sdk:9.0
  14. volumes:
  15. - ../server/:/app
  16. working_dir: /app
  17. command: dotnet build Admin.NET.sln -c Release