fix npm bug

This commit is contained in:
2026-10-26 20:07:40 +01:00
parent 941f9105d6
commit c1bb628f22
9 changed files with 70 additions and 6093 deletions
+14 -7
View File
@@ -1,19 +1,26 @@
FROM node:18 as builder
# Build context is the repo root (npm workspaces share one root package-lock.json)
FROM node:22-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY frontend/package.json frontend/
COPY admin/package.json admin/
COPY backend/package.json backend/
RUN npm ci -w admin
COPY . .
RUN npm run build
ARG VITE_BACKEND_URL
ENV VITE_BACKEND_URL=$VITE_BACKEND_URL
COPY admin/ admin/
RUN npm run build -w admin
FROM nginx:alpine AS runner
WORKDIR /usr/share/nginx/html
COPY --from=builder /app/dist .
COPY --from=builder /app/admin/dist .
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY admin/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]
-6066
View File
File diff suppressed because it is too large Load Diff