refactor: update grid component props and optimize docker setup

This commit is contained in:
2025-10-20 10:34:38 +08:00
parent 3f85b0ff78
commit 91eaa37283
14 changed files with 232 additions and 62 deletions

28
docker-compose.yml Normal file
View File

@@ -0,0 +1,28 @@
version: '3.8'
services:
teres-frontend:
build:
context: .
dockerfile: Dockerfile
target: production
ports:
- "3000:80"
environment:
- NODE_ENV=production
restart: unless-stopped
# 开发环境服务(可选)
teres-frontend-dev:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "5173:5173"
volumes:
- .:/app
- /app/node_modules
environment:
- NODE_ENV=development
profiles:
- dev