File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 25
25
id : push
26
26
27
27
with :
28
+ platforms : linux/amd64,linux/arm64
28
29
context : .
29
30
file : ./Dockerfile
30
31
push : true
Original file line number Diff line number Diff line change @@ -3,11 +3,15 @@ FROM node:20
3
3
ENV NODE_ENV=production
4
4
ENV APP_USER=
5
5
ENV APP_PASS=
6
- ENV SE_TTL=36000000
6
+ ENV SE_TTL=360000
7
7
ENV SE_DEBUG=true
8
8
ENV 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
10
12
ENV 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
11
15
12
16
WORKDIR /app
13
17
@@ -26,8 +30,7 @@ ADD . /app/
26
30
# install dependencies
27
31
RUN npm install --omit=dev
28
32
RUN 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
30
34
RUN chmod +x /app/entrypoint.sh
31
- RUN export
32
35
33
36
CMD ["/bin/bash" , "/app/entrypoint.sh" ]
You can’t perform that action at this time.
0 commit comments