gm-2api / entrypoint.sh
yu
Add Dockerfile and code
4bcd925
raw
history blame contribute delete
208 Bytes
#!/bin/bash
set -e
# 启动 Xvfb 在后台
Xvfb :99 -screen 0 1280x800x24 -ac &
# 等待 Xvfb 启动
sleep 1
# 设置 DISPLAY 环境变量
export DISPLAY=:99
# 启动 Python 应用
exec python -u main.py