cancel
Showing results for 
Search instead for 
Did you mean: 
MarkosS
Flight Engineer
Flight Engineer
  • 701 Views

"dynamically ADD" with ARG in Containerfile

When asked to "dynamically" add a file in a Containerfile, does this mean that the filename can be passed with ARG during build time?

For example

ARG filename=defaultname.tar

ADD $filename /var/www/html

and then during build --build-arg filename="../../newfilename.tar"

Is this what the word "dynamically" means in this context? Is this practice recommended? 

Thank you!

Labels (3)
0 Replies
Join the discussion
You must log in to join this conversation.