fix: reduce size, fix signin redirect

* correct freegames url
* skip downloading browsers in docker
* remove fluxbox
* remove stdout for vnc & xvfb
This commit is contained in:
Trung Le 2022-04-01 01:47:48 +07:00
parent a8c578bd93
commit dbf4804dc7
5 changed files with 830 additions and 1316 deletions

View file

@ -1,20 +1,15 @@
#!/bin/sh
if [ "$VNC_ENABLED" = true ]; then
set -- vnc-start "$@"
fi
if [ "$EXPOSE_X11" = true ]; then
set -- --listen-tcp "$@"
fi
# 6000+SERVERNUM is the TCP port Xvfb is listening on:
SERVERNUM=$(echo "$DISPLAY" | sed 's/:\([0-9][0-9]*\).*/\1/')
# SERVERNUM=$(echo "$DISPLAY" | sed 's/:\([0-9][0-9]*\).*/\1/')
# Options passed directly to the Xvfb server:
# -ac disables host-based access control mechanisms
# screen NUM WxHxD creates the screen and sets its width, height, and depth
SERVERARGS="-ac -screen 0 ${SCREEN_WIDTH}x${SCREEN_HEIGHT}x${SCREEN_DEPTH}"
Xvfb "$DISPLAY" -ac -screen 0 "${SCREEN_WIDTH}x${SCREEN_HEIGHT}x${SCREEN_DEPTH}" >/dev/null 2>&1 &
exec tini -g -- \
xvfb-run --server-num "$SERVERNUM" --server-args "$SERVERARGS" "$@"
if [ "$VNC_ENABLED" = true ]; then
vnc-start >/dev/null 2>&1 &
fi
exec tini -g -- "$@"

View file

@ -1,9 +1,5 @@
#!/bin/sh
# Disable fbsetbg and start fluxbox in a background process:
mkdir -p ~/.fluxbox && echo 'background: unset' >>~/.fluxbox/overlay
fluxbox -display "$DISPLAY" &
# Start VNC in a background process:
x11vnc -display "$DISPLAY" -forever -shared -rfbport "${VNC_PORT:-5900}" \
-passwd "${VNC_PASSWORD:-secret}" &