0

I have come across answers where the build args can be defined on the command itself or hardcoded in the yml itself.

I was wondering if there's another way, other than writing your own script that basically also calls the command with build args, so that the build args values are in a separate file.

Kim Stacks
  • 10,202
  • 35
  • 151
  • 282
  • you can use file for run time env `env_file: variables.env` – Adiii Jul 23 '22 at 13:24
  • @Adiii I have tried that before but docker compose somehow cannot use that for build args. As env variables when running containers yes. – Kim Stacks Jul 24 '22 at 00:15

0 Answers0