Sign inSign up

dannysu/electron-headless

By dannysu

•Updated over 9 years ago

Run Electron with Xvfb

Image
0

745

dannysu/electron-headless repository overview

⁠Run Electron with Xvfb

Simply mount a volume containing the script you want to run in electron and use docker run to execute it.

docker run \
    --rm \
    --shm-size="4G" \
    -v /path/to/script:/path/to/script \
    dannysu/electron-headless \
    sh -c 'xvfb-run electron /path/to/script'

Adjust shm-size to half of your physical RAM.

Tag summary

Content type

Image

Digest

Size

237.1 MB

Last updated

over 9 years ago

docker pull dannysu/electron-headless