Public Repository

Last pushed: a month ago
Short Description
Container to run and build electron apps. https://github.com/stelcheck/docker-electron
Full Description

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: ${!}"
Docker Pull Command
Owner
stelcheck

Comments (0)