mirror of
https://github.com/furyhawk/home_stack.git
synced 2026-07-21 10:16:47 +00:00
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:
+10
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user