Skip to content

docker-compose build shouldn't complain about missing env file #3346

@garyp

Description

@garyp

Our docker-compose.yml file references an env_file that gets auto-generated by a script that we run before docker-compose up. Which means that the env file isn't available when we run docker-compose build. Since the build process doesn't use environment variables, this shouldn't be a problem. But docker-compose build exits with an error of "Couldn't find env file: /foo/bar/my.env".

Instead, docker-compose build should ignore the non-existent env file. It should only print the error if the env file isn't found by the time docker-compose up is run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions