feat(docker, nginx): optimize Dockerfile for frontend build and enhance demo server configuration with mock files and improved WebSocket feedback

This commit is contained in:
2026-01-01 18:36:12 -06:00
parent 96300a8016
commit e6f8e762aa
2 changed files with 32 additions and 6 deletions

View File

@@ -8,7 +8,9 @@ FROM node:${NODE_VERSION}-alpine@${NODE_ALPINE_SHA256} AS build-frontend
WORKDIR /src
COPY package.json vite.config.js pnpm-lock.yaml tailwind.config.js postcss.config.js ./
COPY meshchatx ./meshchatx
# Copy only the frontend source and version info to speed up builds and reduce image size
COPY meshchatx/src/frontend ./meshchatx/src/frontend
COPY meshchatx/src/version.py ./meshchatx/src/version.py
RUN corepack enable && corepack prepare pnpm@latest --activate