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:
parent
a8c578bd93
commit
dbf4804dc7
5 changed files with 830 additions and 1316 deletions
|
|
@ -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 -- "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue