Sign inSign up

stelcheck/electron

By stelcheck

•Updated about 9 years ago

Container to run and build electron apps. https://github.com/stelcheck/docker-electron

Image
0

2.6K

stelcheck/electron repository overview

Contains:

  • All dependencies required to run an Electron-based app
  • Lighweight desktop environment
  • Wine (to make cross-compiled build for Windows using electron-builder)

There are no EXEC or ENTRYPOINT defined at this point, since you will most likely want to customise this according to your needs. However, if you want to run the desktopt environment, you will at least want to:

#
# Video frame buffer
#
Xvfb :9.0 \
  +extension RANDR \
  -screen scrn 1024x768x24 \
  &
echo ">>>> Xvfb started, pid: ${!}"

#
# openbox
#
sudo -u user -H bash -c "openbox-session" &> /dev/null &
echo ">>>> openbox-session started, pid: ${!}"

#
# X11VNC
#
x11vnc \
  -forever \
  &> /dev/null &
echo ">>>> x11vnc started, pid: ${!}"

#
# Start a wineserver
#
sudo -u user -H bash -c "wineserver -f -p" &> /dev/null &
echo ">>>> wineserver started, pid: ${!}"

#
# services.exe for Wine
#
sudo -u user -H bash -c "wine 'C:\windows\system32\services.exe'" &> /dev/null &
echo ">>>> services.exe started, pid: ${!}"

Tag summary

Content type

Image

Digest

Size

534.9 MB

Last updated

about 9 years ago

docker pull stelcheck/electron