How to Use If/Else Conditions With External Arguments in a Dockerfile
·4 mins
There’s no if/else instruction in Dockerfile syntax. Conditional behavior comes from either shell conditionals inside RUN, or picking a different build stage entirely.