- frontend/Dockerfile: 멀티스테이지 (node 빌드 → serve로 dist 정적 서빙). 포트 5173은 그대로 유지해서 Caddy 설정 변경 불필요 - backend/Dockerfile: npm ci --omit=dev + npm start (node --watch 제거) - docker-compose.yml: volumes/모듈 마운트 제거, build 기반으로 변경, restart: unless-stopped, NODE_ENV=production 추가 - .dockerignore 양쪽 추가해서 이미지에 node_modules/.git 제외 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .dockerignore | ||
| .gitignore | ||
| Dockerfile | ||
| eslint.config.js | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| vite.config.js | ||
React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.