reclip / entrypoint.sh
Khaneja
Fix DNS: write resolv.conf as root, then drop to appuser via gosu
b36ba9f
Raw
History Blame Contribute Delete
198 Bytes
#!/bin/bash
# Fix DNS resolution for HF Spaces (runs as root, then drops to appuser)
printf "nameserver 8.8.8.8\nnameserver 1.1.1.1\n" > /etc/resolv.conf 2>/dev/null
exec gosu appuser python app.py