fix: revert cropperjs dependency to version 1.6.2 and adjust Docker build commands for CORS proxy secrets

This commit is contained in:
alam00000
2026-03-01 21:29:13 +05:30
parent 34f12655c1
commit 957b78fafd
7 changed files with 40 additions and 145 deletions

View File

@@ -47,14 +47,13 @@ ENV VITE_BRAND_NAME=$VITE_BRAND_NAME
ENV VITE_BRAND_LOGO=$VITE_BRAND_LOGO
ENV VITE_FOOTER_TEXT=$VITE_FOOTER_TEXT
ARG VITE_CORS_PROXY_URL
ARG VITE_CORS_PROXY_SECRET
ENV VITE_CORS_PROXY_URL=$VITE_CORS_PROXY_URL
ENV VITE_CORS_PROXY_SECRET=$VITE_CORS_PROXY_SECRET
ENV NODE_OPTIONS="--max-old-space-size=3072"
RUN npm run build:with-docs
RUN --mount=type=secret,id=VITE_CORS_PROXY_URL \
--mount=type=secret,id=VITE_CORS_PROXY_SECRET \
VITE_CORS_PROXY_URL=$(cat /run/secrets/VITE_CORS_PROXY_URL 2>/dev/null || echo "") \
VITE_CORS_PROXY_SECRET=$(cat /run/secrets/VITE_CORS_PROXY_SECRET 2>/dev/null || echo "") \
npm run build:with-docs
# Production stage
FROM quay.io/nginx/nginx-unprivileged:stable-alpine-slim