given this .env file:
TEST=33333
given this docker-compose.yml file:
service_name:
image: test
env_file: .env
environment:
TEST: 22222
given this Dockerfile file:
FROM an_image AS builder
FROM another_image
ENV TEST 11111
CMD ["/bin/echo $TEST"]
Whenever I build and run this image in a container, it prints 11111.
If I remove the ENV 11111 line from the Dockerfile, my TEST environment variable is empty...
Is the parent image receiving the environment variables but not the child one?
Thanks!
EDIT:
- trying
ENV TEST ${TEST}didn't work ($TEST is empty) - removing
ENV TESTdidn't work ($TEST is empty)
