Skip to content

FEATURE: Pass the environment name to docker build when building so that, e.g. when building a static site, environment-specific logic can be used in the Dockerfile #245

Description

@half-ogre

An example of this is I am building an Expo web app that needs an environment-specific API URL to call. It would be nice to pull in .env.{environment} into Expo for build args. This would compliment how we pass it entrypoint for runtime env vars.

So, essentially, hx would add --build-arg HYPHEN_APP_ENVIRONMENT=development to its docker build command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions