chore(infra): update build config and deployment scripts

Update Docker configurations, nginx setup, and shared design tokens. Refresh lockfile.
This commit is contained in:
2026-02-11 11:50:04 +08:00
parent e9897388dc
commit 8ca609a889
10 changed files with 1737 additions and 58 deletions

30
Dockerfile.frontend Normal file
View File

@@ -0,0 +1,30 @@
# Frontend Dockerfile - Multi-stage build
FROM node:18-alpine AS builder
WORKDIR /app
# Install pnpm
RUN npm install -g pnpm
# Copy package files
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
# Copy source and build
COPY . .
RUN pnpm run build
# Production stage - nginx for static site
FROM nginx:alpine AS production
# Copy built files from builder stage
COPY --from=builder /app/dist /usr/share/nginx/html
# Copy nginx configuration
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Expose port
EXPOSE 4321
# Start nginx
CMD ["nginx", "-g", "daemon off;"]