feat: rebuild email platform and operations console

This commit is contained in:
2026-07-25 23:06:15 +08:00
parent c109abc6f5
commit 32e0969ca1
443 changed files with 56446 additions and 1585 deletions
+13 -12
View File
@@ -1,19 +1,20 @@
FROM node:20-alpine
FROM node:22-alpine AS builder
# Set working directory
WORKDIR /app
RUN corepack enable && corepack prepare pnpm@11.3.0 --activate
# Copy package.json and package-lock.json
COPY package*.json ./
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
# Install dependencies
RUN npm install
# Copy all other files
COPY . .
RUN pnpm build
# Expose port
EXPOSE 8080
FROM nginx:1.27-alpine
# Run the app
CMD ["npm", "run", "serve"]
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80
HEALTHCHECK --interval=10s --timeout=3s --retries=5 \
CMD wget -q -O /dev/null http://127.0.0.1/ || exit 1