Skip to content

Commit

Permalink
Omit optional installation
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Jan 10, 2025
1 parent 5ff6dc2 commit cd3f2f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile-slim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd3f2f6

Please sign in to comment.