全栈 docker compose 编排上移到根目录,简化部署流程

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
fish
2026-04-26 15:40:50 +08:00
parent 6eb0b3ac3f
commit 4e004f5a85
11 changed files with 418 additions and 263 deletions

View File

@@ -1,16 +0,0 @@
# 开发环境 Dockerfile
# 不复制源码,通过 docker-compose volume 挂载,实现热更新
FROM node:20-alpine
WORKDIR /app
# 安装依赖(利用 Docker 缓存层)
COPY package.json package-lock.json* ./
RUN npm install
# 暴露 Vite 开发服务器端口
EXPOSE 5173
# 开发模式启动(--host 确保外部可访问)
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]