Serverless Github with Huggingface token
How can I pass a Hugging Face token during the build process when deploying a serverless endpoint using the GitHub method and the Dockerfile requires the token?
ex)
//Dockerfile
...
RUN huggingface-cli download {repo} --token ${HF_TOKEN}
3 Replies
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
i would expect that when you use the "environemnt variables" that you can configure on an endpoint that those are also passed into the build, have you tried that yet @은표 ?
As far as I know, environment variables work on the container side, not the build side.
I asked about this officially a few months ago, and at that time, they said the feature wasn't available yet.
Still, I should give it a try. Thanks!