ARG or ENV?
A Dockerfile has ARG APP_VERSION=1.0 and the application reads APP_VERSION at run time, but finds it empty. Why?
ARG APP_VERSION=1.0
APP_VERSION
Choose one answer
ARG values are only visible to COPY and ADD instructions.
ARG
COPY
ADD
The value is only applied when the image is rebuilt from scratch with --no-cache.
--no-cache
ARG exists only during the build; containers get ENV values.
ENV
Build arguments are uppercased, so the app must read app_version.
app_version