UNIVPLMDataIntegration/docker/docker-compose-builder.yml

18 lines
634 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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