From 63ca4178afc091d91e75105f66289654008ef14c Mon Sep 17 00:00:00 2001 From: Peter Hedenskog Date: Tue, 7 Jan 2025 22:57:52 +0100 Subject: [PATCH] Remove webdriver manager from Docker (#4390) * Remove webdriver manager from Docker files --- Dockerfile | 4 +++- Dockerfile-slim | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a0f801fa14..ac7475c6c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/Dockerfile-slim b/Dockerfile-slim index 232fb65d81..1611be84b7 100644 --- a/Dockerfile-slim +++ b/Dockerfile-slim @@ -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