Files
cadSet/CADDesigner-Code/docker/entrypoint.sh
T
2026-07-22 19:38:36 +08:00

20 lines
302 B
Bash

#!/usr/bin/env sh
set -e
export DISPLAY=:99
rm -f /tmp/.X99-lock
if ! pgrep -x Xvfb >/dev/null 2>&1; then
echo "[entrypoint] Starting Xvfb on $DISPLAY"
Xvfb $DISPLAY -screen 0 1920x1080x24 -nolisten tcp &
fi
# Wait for Xvfb to become ready.
sleep 0.5
# Execute the passed command.
exec "$@"