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,

9 Replies
You can write them inside your Dockerfile for a quick fix, I remember Runpod had this on their roadmap like couple months 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!
Your only option is building the docker image, pushing to dockerhub, and pulling from there
a staff said this environment variable feature is in progress
Try github actions with their secrets feature.
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
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)
Yes, but with the current Runpods configuration, we don't have access to the Github actions worflows, it is on Runpods side
Lol
I meant not to use runpod for the image building process until they release that feature