Skip to content

Commit b6adef2

Browse files
committed
wip
1 parent e069c37 commit b6adef2

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/docker-image.yml

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
id: push
2626
uses: docker/[email protected]
2727
with:
28+
platforms: linux/amd64,linux/arm64
2829
context: .
2930
file: ./Dockerfile
3031
push: true

Dockerfile

+7-4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ FROM node:20
33
ENV NODE_ENV=production
44
ENV APP_USER=
55
ENV APP_PASS=
6-
ENV SE_TTL=36000000
6+
ENV SE_TTL=360000
77
ENV SE_DEBUG=true
88
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
1012
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
1115

1216
WORKDIR /app
1317

@@ -26,8 +30,7 @@ ADD . /app/
2630
# install dependencies
2731
RUN npm install --omit=dev
2832
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
3034
RUN chmod +x /app/entrypoint.sh
31-
RUN export
3235

3336
CMD ["/bin/bash", "/app/entrypoint.sh"]

0 commit comments

Comments
 (0)