docs: Update README and development documentation with quick start and build instructions

feat: Add Playwright service to docker-compose for end-to-end testing
refactor: Enhance makefile with new build targets and environment variable support
This commit is contained in:
2026-04-11 20:15:02 +08:00
parent 8f34539d4e
commit ef1f542e93
5 changed files with 83 additions and 11 deletions
+10 -5
View File
@@ -3,13 +3,18 @@ FROM docker.io/node:24 AS build-stage
WORKDIR /app
# Copy everything at once to minimize separate RUN steps
ARG VITE_API_URL
ARG NODE_ENV=production
ENV VITE_API_URL=${VITE_API_URL}
ENV NODE_ENV=${NODE_ENV}
COPY package*.json /app/
RUN npm ci
COPY . /app/
# Offline build - only one RUN command to minimize network operations
RUN npm ci --offline || npm install --no-network && npm run build
ARG VITE_API_URL=${VITE_API_URL}
RUN npm run build
# Stage 1, based on Nginx, to have only the compiled app, ready for production with Nginx