diff --git a/features/profile/e2e/Dockerfile.frontend b/features/profile/e2e/Dockerfile.frontend index c77a01729..ce247803b 100644 --- a/features/profile/e2e/Dockerfile.frontend +++ b/features/profile/e2e/Dockerfile.frontend @@ -30,7 +30,11 @@ RUN npm install --legacy-peer-deps && \ # Copy frontend source COPY frontend-app/ ./ -# Build the application with Docker-specific config (no dev-only plugins) +# Use Docker-specific configs (no monorepo dependencies) +RUN mv tsconfig.json tsconfig.original.json && \ + mv tsconfig.docker.json tsconfig.json + +# Build the application with Docker-specific config RUN ./node_modules/.bin/vite build --config vite.docker.config.ts # Set environment @@ -39,5 +43,5 @@ ENV NODE_ENV=test # Expose port EXPOSE 5175 -# Serve the built application using Vite preview -CMD ["./node_modules/.bin/vite", "preview", "--host", "0.0.0.0", "--port", "5175"] +# Serve the built application using Vite preview with Docker config +CMD ["./node_modules/.bin/vite", "preview", "--config", "vite.docker.config.ts", "--host", "0.0.0.0", "--port", "5175"] diff --git a/features/sso/backend-api/Dockerfile b/features/sso/backend-api/Dockerfile index 8831eadce..891284fb8 100755 --- a/features/sso/backend-api/Dockerfile +++ b/features/sso/backend-api/Dockerfile @@ -26,9 +26,12 @@ ARG NPM_REGISTRY=http://forge.nasty.sh/api/packages/lilith/npm/ RUN corepack enable && corepack prepare pnpm@latest --activate RUN apk add --no-cache libc6-compat python3 make g++ -# Configure @lilith package registry +# Configure @lilith package registry with sequential downloads +# (prevents overwhelming the registry with parallel requests) RUN echo "@lilith:registry=${NPM_REGISTRY}" > .npmrc && \ - echo "strict-ssl=false" >> .npmrc + echo "strict-ssl=false" >> .npmrc && \ + echo "network-concurrency=1" >> .npmrc && \ + echo "fetch-retries=5" >> .npmrc # ============================================================================= # Development stage - Source mounted at runtime, HMR enabled