Add consent-first analytics privacy controls

This commit is contained in:
achraf
2026-06-07 16:11:21 +02:00
parent aa44f6c105
commit 0b2d38ee5e
15 changed files with 492 additions and 24 deletions

View File

@@ -9,11 +9,9 @@ RUN pnpm install --frozen-lockfile
FROM node:22-alpine AS build
WORKDIR /app
RUN corepack enable && corepack prepare pnpm@10.33.2 --activate
ARG VITE_PLIMI_REPO_URL=https://github.com/your-org/plimi
ENV VITE_PLIMI_REPO_URL=$VITE_PLIMI_REPO_URL
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN pnpm build
RUN --mount=type=secret,id=vite_env,target=/app/.env,required=true pnpm build
FROM nginx:1.27-alpine AS runtime
COPY nginx.conf /etc/nginx/conf.d/default.conf