Initializes Docker setup for the project

Establishes a containerized development and production environment.

Creates Dockerfiles, docker-compose configurations, and associated scripts.

Prioritizes easy setup, dependency isolation, and platform consistency.
Enhances dev experience and simplifies deployment.
This commit is contained in:
Chenwei Jiang 2025-08-26 21:45:40 +08:00
parent 5c262d2f45
commit 9454359cd2
Signed by: cheverjohn
GPG key ID: ADC4815BFE960182
13 changed files with 5250 additions and 1 deletions

16
docker-compose.dev.yml Normal file
View file

@ -0,0 +1,16 @@
services:
app:
image: node:20
container_name: minimax-referral-hub-dev
working_dir: /app
command: sh -c "corepack enable && corepack prepare pnpm@latest --activate && pnpm install && pnpm run dev -- --host 0.0.0.0"
ports:
- "5173:5173"
environment:
- CHOKIDAR_USEPOLLING=1
- WATCHPACK_POLLING=true
- NODE_ENV=development
volumes:
- ./:/app
restart: unless-stopped