Deprecated in favor of docker-xvfb
Starts x11 and runs electron all-inclusive inside a container. Uses xdummy for rendering.
Supports the following arguments:
- ELECTRON_VERSION=
latest
: Which electron version (npm semver) we use - NODE_VERSION=
10
: Which node version (major only 10, 11, 12, etc) we use - ELECTRON_ENTRY=
.
: Where our electron entrypoint is (relative to workdir)
You'll probably want to derive from this container:
FROM bengreenier/x11-electron
ENV ELECTRON_VERSION=5.0.0
ENV ELECTRON_ENTRY=./dist/main.js
# assuming you have some electron code in dist
COPY ./dist ./