Skip to content

NextJS + Dockerfile #115

@chadychaitocm

Description

@chadychaitocm

I'm unsuccessfully trying to get your library to work in Dockerfile.
My problem is as follows, I would like to pass APP_ENV as a build-arg to the Dockerfile and then make react-env generate the file according to the passed argument, having multiple .env (qa, dev, prod). Could you add an example to git with this?

I tried something like that:
CMD yarn react-env --path .env.${APP_ENV} && yarn start
where APP_ENV is a build-arg, but doesn't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions