title: docker alpine with node js and chromium headless - puppeter - failed to launch chrome
body: <p>I'm trying to run a custom node command from within an Alpine linux docker container.</p>
  
  <p>Installed packages:</p>
  
  <pre><code>alpine-baselayout
  alpine-keys
  libressl2.4-libcrypto
  libressl2.4-libssl
  apk-tools
  scanelf
  libc-utils
  glibc
  libgcc
  glibc-bin
  libbz2
  expat
  libffi
  gdbm
  xz-libs
  ncurses-terminfo-base
  ncurses-terminfo
  ncurses-libs
  readline
  sqlite-libs
  musl
  zlib
  libpng
  freetype
  pkgconf
  zlib-dev
  libpng-dev
  freetype-dev
  libstdc++
  binutils-libs
  binutils
  gmp
  isl
  libgomp
  libatomic
  mpfr3
  mpc1
  gcc
  musl-dev
  libc-dev
  g++
  ca-certificates
  libssh2
  libcurl
  pcre
  git
  libjpeg-turbo
  libjpeg-turbo-dev
  tiff
  tiff-dev
  lcms2
  lcms2-dev
  musl-utils
  libffi-dev
  libressl
  libressl2.4-libtls
  libressl-dev
  make
  db
  libsasl
  libldap
  libpq
  postgresql-libs
  postgresql-dev
  python2
  py-setuptools
  python3
  python3-dev
  libxau
  libbsd
  libxdmcp
  libxcb
  libx11
  gifsicle
  pngquant
  optipng
  libjpeg-turbo-utils
  busybox
  udev-init-scripts
  eudev-libs
  libuuid
  libblkid
  kmod
  eudev
  fontconfig
  libfontenc
  mkfontscale
  mkfontdir
  ttf-opensans
  libogg
  flac
  libxcomposite
  libxfixes
  libxrender
  libxcursor
  libxdamage
  libxext
  libxi
  libxrandr
  libxscrnsaver
  libxtst
  alsa-lib
  libintl
  libmount
  glib
  atk
  pixman
  cairo
  dbus-libs
  avahi-libs
  nettle
  libtasn1
  p11-kit
  libunistring
  gnutls
  cups-libs
  libxml2
  shared-mime-info
  hicolor-icon-theme
  gdk-pixbuf
  gtk-update-icon-cache
  libxinerama
  at-spi2-core
  at-spi2-atk
  cairo-gobject
  libepoxy
  graphite2
  harfbuzz
  libxft
  pango
  gtk+3.0
  minizip
  nspr
  nss
  snappy
  libwebp
  libgpg-error
  libgcrypt
  libxslt
  chromium
  .build-deps
  libwebp-dev
  c-ares
  libcrypto1.0
  http-parser
  libssl1.0
  libuv
  nodejs
  nodejs-npm
  libidl
  orbit2
  dbus-glib
  polkit
  gconf
  </code></pre>
  
  <p>node packages (<code>npm list --depth=0</code>):</p>
  
  <pre><code>node-pdf-renderer@0.0.1 /var/www/my_proj/idf/static/js
  └── puppeteer@0.12.0
  </code></pre>
  
  <p>but I'm experiencing some errors:</p>
  
  <pre><code>/var/www/my_proj/idf/static/js # node render.js uid=uid-param url=https://www.targethost.example token=tk-param out=/tmp/test.pdf
  
  (node:167) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Failed to launch chrome!
  /var/www/my_proj/idf/static/js/node_modules/puppeteer/.local-chromium/linux-508693/chrome-linux/chrome: /usr/lib/libasound.so.2: no version information available (required by /var/www/my_proj/idf/static/js/node_modules/puppeteer/.local-chromium/linux-508693/chrome-linux/chrome)
  
  
  TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
  
  (node:167) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  </code></pre>
  
  <p>it seems that is not able to instantiate chromium.
  I also tried to modify teh render.js script while it creates an instance of the browser to this:</p>
  
  <pre><code>const browser = await puppeteer.launch({
          args: ['--no-sandbox'],
          headless: false
      });
  </code></pre>
  
  <p>but I got the same result. Any help on this?</p>