Build Arguments
Use build arguments to modify the app or its behaviour during build time
This functionality requires at least auterion-app-api 3 to be available
You may specify build-time arguments in the auterion-app.yml file using the build-args
keyword:
auterion-app.yml
The environment variable FOO
and the docker build argument BAR
can then be defined in the environment where auterion-cli is executed, for example:
Alternatively the environment variable can be defined in a top-level .env
file in the app directory:
.env
Note that environment variables defined from the command line will overwrite the variables already defined in the .env
file.
The BAR
docker build argument can then be used at build-time from your Dockerfile:
Dockerfile
Last updated