Omit optional installation

This commit is contained in:
Peter Hedenskog 2025-01-10 15:12:54 +01:00
parent 5ff6dc2a98
commit cd3f2f6dca
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY . /usr/src/app
COPY tools/postinstall.js /usr/src/app/tools/postinstall.js
RUN CHROMEDRIVER_SKIP_DOWNLOAD=true EGDEDRIVER_SKIP_DOWNLOAD=true npm install --production && npm cache clean --force && npm uninstall npm npx -g && rm -fR /usr/src/app/node_modules/selenium-webdriver/bin
RUN CHROMEDRIVER_SKIP_DOWNLOAD=true EGDEDRIVER_SKIP_DOWNLOAD=true npm install --omit=dev --omit=optional && npm cache clean --force && npm uninstall npm npx -g && rm -fR /usr/src/app/node_modules/selenium-webdriver/bin
WORKDIR /usr/src/app
COPY docker/scripts/start-slim.sh /start.sh