Skip Cypress/Puppeteer/Playwright binary downloads in build (unstick npm ci)
continuous-integration/drone/push Build is running
build-run / Run Lint, Build and Deploy (push) Canceled after 0s
Publish Image in Docker Hub / build (push) Canceled after 0s
Playwright E2E Tests / Run Playwright Tests (push) Canceled after 0s
Tests / testRigor (push) Canceled after 0s
continuous-integration/drone/push Build is running
build-run / Run Lint, Build and Deploy (push) Canceled after 0s
Publish Image in Docker Hub / build (push) Canceled after 0s
Playwright E2E Tests / Run Playwright Tests (push) Canceled after 0s
Tests / testRigor (push) Canceled after 0s
This commit is contained in:
+9
-1
@@ -9,7 +9,8 @@ ARG NPM_REGISTRY_URL=https://registry.npmjs.org/
|
||||
ARG BUILD_ENVIRONMENT_OPTIONS="--configuration production"
|
||||
ARG PUPPETEER_DOWNLOAD_HOST_ARG=https://storage.googleapis.com
|
||||
ARG PUPPETEER_CHROMIUM_REVISION_ARG=1011831
|
||||
ARG PUPPETEER_SKIP_DOWNLOAD_ARG
|
||||
# Build ko Chromium nahi chahiye — skip (warna npm ci Chromium download par atak jata hai).
|
||||
ARG PUPPETEER_SKIP_DOWNLOAD_ARG=true
|
||||
|
||||
# Set the environment variable to increase Node.js memory limit
|
||||
# (Mifos web-app ka production build memory-heavy hai; upstream build:prod
|
||||
@@ -27,6 +28,13 @@ ENV PUPPETEER_DOWNLOAD_HOST=$PUPPETEER_DOWNLOAD_HOST_ARG
|
||||
ENV PUPPETEER_CHROMIUM_REVISION=$PUPPETEER_CHROMIUM_REVISION_ARG
|
||||
ENV PUPPETEER_SKIP_DOWNLOAD=$PUPPETEER_SKIP_DOWNLOAD_ARG
|
||||
|
||||
# Test/e2e tooling ke bhaari binary downloads skip karo — build inhe use nahi
|
||||
# karta, aur inke bina npm ci turant complete ho jata hai.
|
||||
# Cypress -> ~250MB binary (CI me sabse zyada atakta hai)
|
||||
# Playwright-> browser binaries
|
||||
ENV CYPRESS_INSTALL_BINARY=0
|
||||
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
|
||||
|
||||
COPY ./ /usr/src/app/
|
||||
|
||||
RUN npm cache clear --force
|
||||
|
||||
Reference in New Issue
Block a user