规定数据类型

This commit is contained in:
2026-04-24 01:45:29 +08:00
parent ab860c61d9
commit d1943f564a
18 changed files with 546 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
# Frontend Dockerfile - Vue3 + Vite
FROM node:20-alpine AS builder
WORKDIR /app
# Copy package files
COPY client/package*.json ./client/
COPY shared/package*.json ./shared/
# Install dependencies
RUN cd client && npm ci
# Copy source code
COPY client ./client
COPY shared ./shared
# Build
RUN cd client && npm run build
# Production stage - serve with nginx
FROM nginx:alpine
# Copy custom nginx config
COPY docker/nginx/default.conf /etc/nginx/conf.d/default.conf
# Copy built files
COPY --from=builder /app/client/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]