[Runtime Error] Using Undistro (Wolfi OS) in HF Docker Spaces

I wonder how Hugging Face is running Docker Spaces. My space is working fine, but Hugging Face gives me a runtime error

===== Application Startup at 2025-08-10 15:41:44 =====

Fatal Python error: Failed to import encodings module
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f984b138780 (most recent call first):
  <no Python frame>
Fatal Python error: Failed to import encodings module
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f52d1425780 (most recent call first):
  <no Python frame>
1 Like

Dockerfile for Hugging Face’s Docker Space requires some tricks in terms of permissions, paths and other settings.
In any case, it may be safer not to hardcode PYTHONHOME.