Some checks failed
continuous-integration/drone/push Build is failing
- 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)
22 lines
366 B
Docker
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;"]
|