Files
000-platform/deploy/Dockerfile.frontend
111 b89d5ddee9
Some checks failed
continuous-integration/drone/push Build is failing
feat: add admin UI frontend and complete backend APIs
- Add Vue 3 frontend with Element Plus
- Implement login, dashboard, tenant management
- Add app configuration, logs viewer, stats pages
- Add user management for admins
- Update Drone CI to build and deploy frontend
- Frontend ports: 3001 (test), 4001 (prod)
2026-01-23 15:51:37 +08:00

22 lines
366 B
Docker

FROM node:20-alpine as builder
WORKDIR /app
# 安装依赖
COPY frontend/package*.json ./
RUN npm ci
# 构建
COPY frontend/ .
RUN npm run build
# 生产镜像
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY deploy/nginx/frontend.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]