File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 2525 id : push
2626 uses : docker/build-push-action@v6.7.0
2727 with :
28+ platforms : linux/amd64,linux/arm64
2829 context : .
2930 file : ./Dockerfile
3031 push : true
Original file line number Diff line number Diff line change @@ -3,11 +3,15 @@ FROM node:20
33ENV NODE_ENV=production
44ENV APP_USER=
55ENV APP_PASS=
6- ENV SE_TTL=36000000
6+ ENV SE_TTL=360000
77ENV SE_DEBUG=true
88ENV SE_TRACE=true
9- ENV SE_BROWSER_VERSION=130
9+ ENV SE_OFFLINE=true
10+ ENV SE_BROWSER_VERSION=130.0.6723.116
11+ ENV SE_DRIVER_VERSION=130.0.6723.116
1012ENV SE_AVOID_BROWSER_DOWNLOAD=true
13+ ENV SE_CACHE_PATH=/app/.selenium
14+ ENV PATH=$PATH:$SE_CACHE_PATH/chromedriver/linux64/$SE_DRIVER_VERSION/chromedriver:$SE_CACHE_PATH/chrome/linux64/$SE_BROWSER_VERSION/chrome
1115
1216WORKDIR /app
1317
@@ -26,8 +30,7 @@ ADD . /app/
2630# install dependencies
2731RUN npm install --omit=dev
2832RUN npm install pm2 -g
29- RUN SE_AVOID_BROWSER_DOWNLOAD=false ./node_modules/selenium-webdriver/bin/linux/selenium-manager --browser chrome
33+ RUN SE_AVOID_BROWSER_DOWNLOAD=false SE_OFFLINE=false ./node_modules/selenium-webdriver/bin/linux/selenium-manager --browser chrome --output SHELL --browser-version $SE_BROWSER_VERSION
3034RUN chmod +x /app/entrypoint.sh
31- RUN export
3235
3336CMD ["/bin/bash" , "/app/entrypoint.sh" ]
You can’t perform that action at this time.
0 commit comments