I have frontend application that needs specific environment variables running in a docker container
I need to pass the args to the dockerfile so it can be used at build time, could you point me in the direction on how you do this with qovery?
The environment variables don’t seem to be passed into deploy command when using Github Actions
Qovery injects your specified environment variables and secrets at the build and run time. However, if you want to use them in your Dockerfile, you need to specify their usage:
...
ARG STRIPE_API_KEY
ENV STRIPE_API_KEY $STRIPE_API_KEY
...
If you have multiple environment variables that you want to use at the build time, then you will need to add them as well.
Here is an article explaining how Docker handles this.
1 Like