Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable Variables #30

Open
FijolaC opened this issue May 14, 2024 · 1 comment
Open

Configurable Variables #30

FijolaC opened this issue May 14, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@FijolaC
Copy link

FijolaC commented May 14, 2024

Hi,

We have encountered a problem where it is currently not possible to pass environment variables to a Docker container from outside. This seems to be due to the way the variables are integrated.

It would be much nicer if we could pass the variables through a separate environment file, such as a config.json.

Then, we could refer to the config.json when running npm serve, and in the Docker context, an environment variable or an env-file could be passed.

This would mean that no variables are required at build time.

Also, this approach would eliminate the need to constantly rebuild the container or run npm install, and it would be possible to provide one's own access token or other Vue variables at container start, without them being stored in the container during the build.

However, this would require adjusting how the variables are processed.

Thanks

@martedesco martedesco added the enhancement New feature or request label May 31, 2024
@DevOps-zhuang
Copy link
Contributor

So, is it possible to change the app to stateless applicaton so that all the information in .env are added during runtime?
I used to create a similar application with python flask, will try it with copilot :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants