Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

resolve build args on compose up --build #1679

Merged
merged 1 commit into from May 17, 2021
Merged

Conversation

ndeloof
Copy link
Collaborator

@ndeloof ndeloof commented May 17, 2021

What I did
Resolve build args from environment when running docker compose up --build

Related issue
close #1665

@github-actions github-actions bot added the local Local context (moby) label May 17, 2021
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Copy link
Member

@lorenrh lorenrh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌮

@SamuelMS
Copy link

SamuelMS commented May 28, 2021

@ndeloof I did a little digging but couldn't find anything about Docker's release cycle – do you have any guidance you can share on when this'll get pushed up to Docker for Mac? I'm glad there's a workaround (use docker-compose instead), but I've seen quite a few developers hit this issue now.

@reagent
Copy link

reagent commented Jan 31, 2022

Ran into this one today and upgraded Docker on Mac -- looks like this is fixed in 20.10.12 / 1.29.2:

$ docker-compose --version
docker-compose version 1.29.2, build 5becea4c
$ docker --version
Docker version 20.10.12, build e91ed57

@tucomel
Copy link

tucomel commented Mar 26, 2022

the problem still persist here
already using latest versions and the command
docker-compose build --build-arg ASPNETCORE_ENVIRONMENT=Development
or
docker-compose build --build-arg ENV=Development
still not works

image

@juan7732
Copy link

juan7732 commented May 7, 2022

@tucomel That doesn't seem to be an issue with the problem mentioned here. You need to remove the whitespace after ASPNETCORE_ENVIRONMENT in your docker-compose file.
image
image

@artshade
Copy link

artshade commented Sep 4, 2022

the problem still persist here already using latest versions and the command docker-compose build --build-arg ASPNETCORE_ENVIRONMENT=Development or docker-compose build --build-arg ENV=Development still not works

image

My apologies, quite off-topic, but just to clarify, is that Vim?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
local Local context (moby)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.env file values used as args not passed to DockerFile
8 participants