Both ARG
s an ENV
s are available to a Dockerfile
at build time, but apparently Docker Compose allows only to specify ARGs in service.build.args
. ENVs specified in service.environment
apparently are not visible at build time (which also makes sense given this path).
So if my build depends on ENVs (as well as ARGs) and if I build with docker-compose build
, how can I provide the build-time ENVs inside my docker-compose.yaml
?