Buil docker with environment variables

Hi, I try to build a docker from github repo:https://github.com/weaviate/multi2vec-clip-inference. And I setup env variables but I have the error: 2025-03-31 18:51:46 [INFO] > [8/9] RUN ./download.py: 2025-03-31 18:51:46 [INFO] 2.112 ERROR:root:Fatal: TEXT_MODEL_NAME is required How can I enable env variables at build? Thanks,
No description
9 Replies
Eren
Eren4w ago
You can write them inside your Dockerfile for a quick fix, I remember Runpod had this on their roadmap like couple months ago
Thierry
Thierry4w ago
Yeah we're stuck because of this as well. Unfortunately we need to add HF api keys to download the models and writing this in the dockerfile is not an option!
Eren
Eren4w ago
Your only option is building the docker image, pushing to dockerhub, and pulling from there
Jason
Jason4w ago
a staff said this environment variable feature is in progress
riverfog7
riverfog74w ago
Try github actions with their secrets feature.
Captain Barbossa
How could this works ? We don't have any access to the Github Actions workflows, we can't set up the .env variables in the workflows I hope, this is a must, I'm sure a lot of people are waiting for this
riverfog7
riverfog74w ago
In github actions you can get the api keys from the github secrets where you can store them securely (they do not appear on your repository)
Captain Barbossa
Yes, but with the current Runpods configuration, we don't have access to the Github actions worflows, it is on Runpods side
riverfog7
riverfog74w ago
Lol I meant not to use runpod for the image building process until they release that feature

Did you find this page helpful?