Remove build env variables #3006
-
|
Currently when adding .env variables there is a checkbox to specify if an env variable is available at build time. Is there a real need to a checkbox to allow specifing build time env variables? I would propose to remove this build env variables in favor of having the specified env variables available in build time and in runtime. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
@predragnikolic I do think you missunderstood the feature. When deploying via git, the nixpacks will create a Dockerfile. As reminder, environment variables for the build time are defined via ARG and willn't be available in the final container, while those defined by ENV will be available inside the final container. So, some people can need build time variables only (this is when the checkbox is checked), while other people can require env variables for the runtime. See also : https://nixpacks.com/docs/how-it-works |
Beta Was this translation helpful? Give feedback.
-
|
@predragnikolic Check the comment of @nuxwin. |
Beta Was this translation helpful? Give feedback.
@predragnikolic I do think you missunderstood the feature. When deploying via git, the nixpacks will create a Dockerfile. As reminder, environment variables for the build time are defined via ARG and willn't be available in the final container, while those defined by ENV will be available inside the final container. So, some people can need build time variables only (this is when the checkbox is checked), while other people can require env variables for the runtime. See also : https://nixpacks.com/docs/how-it-works