Answer the question
In order to leave comments, you need to log in
How to change image version dynamically?
Is it possible to set an image tag in .env
a file and pass it to a Dockerfile?
I'm thinking of doing it via docker-compose arguments
# docker-compose
version: '3.5'
services:
foo:
build:
context: .
args:
label: ${FOO_TAG}
# dockerfile
FROM foo:${label}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question