Skip to content

Commit

Permalink
Remove webdriver manager from Docker (#4390)
Browse files Browse the repository at this point in the history
* Remove webdriver manager from Docker files
soulgalore authored Jan 7, 2025
1 parent 2db8158 commit 63ca417
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -28,8 +28,10 @@ WORKDIR /usr/src/app
COPY package.json /usr/src/app/
COPY npm-shrinkwrap.json /usr/src/app/
COPY tools/postinstall.js /usr/src/app/tools/postinstall.js
RUN npm install --production && npm cache clean --force
RUN npm install --production && npm cache clean --force

COPY . /usr/src/app
RUN rm -fR /usr/src/app/node_modules/selenium-webdriver/bin

COPY docker/scripts/start.sh /start.sh

2 changes: 1 addition & 1 deletion Dockerfile-slim
Original file line number Diff line number Diff line change
@@ -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
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

WORKDIR /usr/src/app
COPY docker/scripts/start-slim.sh /start.sh

0 comments on commit 63ca417

Please sign in to comment.