I have a dockerfile and I'm trying to set the value of an ARG based on whether or not an if condition is true or not. So ARG would be different depending on the result of the if condition.
I'm wondering if something like this is possible or if there's another workaround to this problem
ENV text $TEXT
ARG value= if (text == "hi") /path1; else /path2
WORKDIR ${value}