/alpine-node-chromium

Dockerized chromium inside node alpine image

Primary LanguageDockerfileMIT LicenseMIT

alpine-node-chromium

Dockerized chromium, built on top of official Node alpine images.

About image

• What, why, how?

Image intended to be used in modern front-end development workflow, to be exact, with Karma test runner via karma-chrome-launcher which uses headless Chromium instead traditional PhantomJS which doesn't play well with Alpine linux.

If you're interested into actual Karma configuration, it looks like:

  browsers: ['ChromiumNoSandbox'],
  customLaunchers: {
    ChromiumNoSandbox: {
      base: 'ChromiumHeadless',
      flags: ['--no-sandbox', '--headless', '--disable-gpu', '--disable-translate', '--disable-extensions']
    }
  }

• Image tags

  • rastasheep/alpine-node-chromium:8-alpine (based on: node:8-alpine)
  • rastasheep/alpine-node-chromium:7-alpine (based on: node:7-alpine)
  • rastasheep/alpine-node-chromium:6-alpine (based on: node:6-alpine)
  • rastasheep/alpine-node-chromium:4-alpine (based on: node:4-alpine)

• Installed packages

Chromium stuff

Image optimization libs

• Environment variables

  • CHROME_BIN=/usr/bin/chromium-browser
  • LIGHTHOUSE_CHROMIUM_PATH=/usr/bin/chromium-browser

Issues

If you run into any problems with this image, please check (and potentially file new) issues on the rastasheep/alpine-node-chromium repository, which is the source for this image.

License

alpine-node-chromium is licensed under the MIT license.