Cloud Run PM here. Sorry for the inconvenience. This is an issue for which we have a fix, but the fix still needs to roll out (internal bug 154368323 for googlers reading, we're still evaluating the best rollout strategy). Until then, I'll add it to <a href="https://cloud.google.com/run/docs/issues" rel="nofollow">https://cloud.google.com/run/docs/issues</a>.
For those not familiar with Cloud Run, it's a Google Cloud service that allows you to run Docker containers without managing the server it runs on.<p><a href="https://cloud.google.com/run" rel="nofollow">https://cloud.google.com/run</a>
The solution here is to use `$XDG_CACHE_HOME` instead of `$HOME/.cache`, which may not be where a user wants their cache to live: <a href="https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html" rel="nofollow">https://specifications.freedesktop.org/basedir-spec/basedir-...</a>
As an alternative, don’t use root for Dockerfiles. Ever. It only takes a few lines to create a user, group, and use said user, and closes a whole class of security issues.
That sucks.<p>My only advice is, when using this or cloud functions always start by creating a function/image that prints all env variables.<p>For cloud functions these changes tremendously between Python version. Also logging changes completely between some Python versions, to the point where upping the runtime causes logs to stop being saved on cloud logging.
Does Huggingface not have a way to override the cache directory? I always specify directories like this manually when using docker specifically to avoid issues like the one in TFA.