|
13 | 13 | # Disable chrome auto updates, based on https://support.google.com/chrome/a/answer/9052345 |
14 | 14 | mkdir -p /etc/default && echo 'repo_add_once=false' > /etc/default/google-chrome \ |
15 | 15 | && apt-get update \ |
16 | | - && apt-get install -y wget gnupg unzip ca-certificates xvfb --no-install-recommends \ |
| 16 | + && apt-get install -y wget gnupg unzip ca-certificates xvfb xauth --no-install-recommends \ |
17 | 17 | && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ |
18 | 18 | && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ |
19 | 19 | && sh -c 'echo "deb http://ftp.us.debian.org/debian bookworm main non-free" >> /etc/apt/sources.list.d/fonts.list' \ |
@@ -59,7 +59,7 @@ WORKDIR /home/myuser |
59 | 59 | ENV PLAYWRIGHT_BROWSERS_PATH=/home/myuser/pw-browsers |
60 | 60 |
|
61 | 61 | # Copy source code and xvfb script |
62 | | -COPY --chown=myuser:myuser package.json main.js chrome_test.js start_xvfb_and_run_cmd.sh /home/myuser/ |
| 62 | +COPY --chown=myuser:myuser package.json main.js chrome_test.js start_xvfb_and_run_cmd.sh new_xvfb_run_cmd.sh /home/myuser/ |
63 | 63 |
|
64 | 64 | # Sets path to Chrome executable, this is used by Apify.launchPuppeteer() |
65 | 65 | ENV APIFY_CHROME_EXECUTABLE_PATH=/usr/bin/google-chrome |
@@ -110,4 +110,5 @@ ENV XVFB_WHD=1920x1080x24+32 |
110 | 110 | # NOTEs: |
111 | 111 | # - This needs to be compatible with CLI. |
112 | 112 | # - Using CMD instead of ENTRYPOINT, to allow manual overriding |
113 | | -CMD ./start_xvfb_and_run_cmd.sh && npm start --silent |
| 113 | +# CMD ./start_xvfb_and_run_cmd.sh && npm start --silent |
| 114 | +CMD ./new_xvfb_run_cmd.sh npm start --silent |
0 commit comments