environment variables
how to get environment variables while build?
I set variables in endpoint settings, but they are not available during build.
Please tell me if I missed something?
result:

Solution:Jump to solution
You can either build the Docker image yourself, push to a docker registry and deploy from there. Or if you want to use the Github Integration you need to put your key inside the Dockerfile, this is the current solution.
3 Replies
Environment Variables are not available during build time .They are only available on runtime.
Does this mean I need to add the token to the Dockerfile?
I load it at build time so that it remains in the image and I don’t have to download it on every request. Are there other ways to accomplish this?
Solution
You can either build the Docker image yourself, push to a docker registry and deploy from there. Or if you want to use the Github Integration you need to put your key inside the Dockerfile, this is the current solution.