Last active
June 7, 2024 14:55
-
-
Save chimmelb/6342504893b2b9fce0f4a8efd096ae60 to your computer and use it in GitHub Desktop.
.ebextensions config file to load NodeJS EB instance with packages needed for Puppeteer/Chromium
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is for ElasticBeanstalk with Amazon Linux 2023. For previous Linux 2 or Linux 1, see revisions for ideas | |
packages: | |
yum: | |
cups-libs: [] | |
libdrm: [] | |
libXdamage: [] | |
libXfixes: [] | |
libXrandr: [] | |
mesa-libgbm: [] | |
libxkbcommon: [] | |
dbus-glib: [] | |
libXrandr: [] | |
libXcursor: [] | |
libXinerama: [] | |
cairo: [] | |
cairo-gobject: [] | |
pango: [] | |
liberation-sans-fonts: [] | |
libwayland-client: [] | |
libwayland-cursor: [] | |
gtk3: [] | |
gdk-pixbuf2: [] | |
libxkbcommon: [] | |
libXScrnSaver: [] | |
libpkgconf: [] | |
atk: [] | |
at-spi2-atk: [] | |
at-spi2-core: [] | |
alsa-lib: [] | |
commands: | |
refresh-fonts: | |
command: | | |
fc-cache-64 -f -v |
@wojtekKrol
Exactly as @SFaraji wrote in his StackOverflow answer. You need to install playwright with EBCONFIG file:
command: PLAYWRIGHT_BROWSERS_PATH=$HOME/pw-browsers npx playwright install
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And how do you install puppeter (in my case playwright)?
I tried with command
npx playwright install chromium
but it throws error