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.

2
  • you can use file for run time env env_file: variables.env Commented Jul 23, 2022 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. Commented Jul 24, 2022 at 0:15

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.